termux-packages/x11-packages/the-powder-toy/The-Powder-Toy-93.3_src_gui_game_GameController.cpp.patch
2022-04-18 14:08:05 +05:30

21 lines
805 B
Diff

diff -uNr The-Powder-Toy-93.3/src/gui/game/GameController.cpp The-Powder-Toy-93.3.mod/src/gui/game/GameController.cpp
--- The-Powder-Toy-93.3/src/gui/game/GameController.cpp 2018-04-02 00:19:03.000000000 +0300
+++ The-Powder-Toy-93.3.mod/src/gui/game/GameController.cpp 2018-06-15 13:55:36.206253889 +0300
@@ -843,7 +843,7 @@
#if !defined(MACOSX) && !defined(NO_INSTALL_CHECK)
if (Client::Ref().IsFirstRun())
{
- Install();
+ //Install();
}
#endif
firstTick = false;
@@ -1253,6 +1253,7 @@
gameSave->authors = localSaveInfo;
gameModel->SetSaveFile(&tempSave);
+ Client::Ref().MakeDirectory("/data/data/com.termux/files/home/.powdertoy");
Client::Ref().MakeDirectory(LOCAL_SAVE_DIR);
std::vector<char> saveData = gameSave->Serialise();
if (saveData.size() == 0)