git repos / blockattack-game

commit 7261f4dd

Poul Sander · 2019-03-13 18:10
7261f4ddb0505791deaadb8b740f85213ce0dd8d patch · browse files
parent e17d4be2af94c154b60db65d64f96550491cc608

Have a gameRunning file while the game is running

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index d883e06..dd88d1f 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -942,8 +942,9 @@ int main(int argc, char* argv[]) {
ParseArguments(argc, argv, config);
OsCreateSaveFolder();
PhysFsSetSearchPath(config.search_paths, config.savepath);
- //Os create folders must be after the paramters because they can change the home folder
+ //Os create folders must be after the parameters because they can change the home folder
PhysFsCreateFolders();
+ sago::WriteFileContent("gameRunning", "Started");
globalData.SoundEnabled = true;
globalData.MusicEnabled = true;
twoPlayers = false; //true if two players splitscreen
@@ -1202,6 +1203,7 @@ int main(int argc, char* argv[]) {
catch (exception& e) {
sago::SagoFatalError(e.what());
}
+ PHYSFS_delete("gameRunning");
//Close file system Apstraction layer!
PHYSFS_deinit();
return 0;