1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 22:18:30 +02:00

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.
This commit is contained in:
Misa 2020-03-04 13:29:13 -08:00 committed by Ethan Lee
parent 5a25cad74b
commit a46d5b126c

View File

@ -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();