From 33ba80584916829fc68c7d90ccd22d1ff6a00399 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 10 Dec 2005 18:40:20 +0000 Subject: [PATCH] add UserQuit --- stepmania/src/arch/ArchHooks/ArchHooks.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stepmania/src/arch/ArchHooks/ArchHooks.h b/stepmania/src/arch/ArchHooks/ArchHooks.h index de44ef397a..7d803d884a 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks.h +++ b/stepmania/src/arch/ArchHooks/ArchHooks.h @@ -78,6 +78,11 @@ public: */ virtual void MountInitialFilesystems( const CString &sDirOfExecutable ) = 0; + /* + * Returns true if the user wants to quit (eg. ^C, or clicked a "close window" button). + */ + virtual bool UserQuit() { return false; } + private: /* This are helpers for GetMicrosecondsSinceStart on systems with a timer * that may loop or move backwards. */