From a46d5b126c84b6763863b96d8f6027f11022c1f3 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 4 Mar 2020 13:29:13 -0800 Subject: [PATCH] Write unlock.vvv when pressing Alt+F4 Previously, the only way to guarantee that the game actually saved your unlock.vvv after changing an option, was to ensure you pressed ACTION on the "quit game" menu option. This makes Alt+F4 graceful in that pressing it will also save unlock.vvv, as it should. Now truly UN-graceful ways of exiting the game, such as SIGSEGV, SIGABRT, or pkill -9 or pkill -15 will not save unlock.vvv, as should be the case. --- desktop_version/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desktop_version/src/main.cpp b/desktop_version/src/main.cpp index 7459bb48..d634427c 100644 --- a/desktop_version/src/main.cpp +++ b/desktop_version/src/main.cpp @@ -575,6 +575,7 @@ int main(int argc, char *argv[]) //SDL_FreeSurface( gameScreen ); //Quit SDL + game.savestats(map, graphics); NETWORK_shutdown(); SDL_Quit(); FILESYSTEM_deinit();