1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-03 03:23:33 +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
parent 5a25cad74b
commit f1203e226e

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