40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
diff -uNr The-Powder-Toy-93.3/src/client/Client.cpp The-Powder-Toy-93.3.mod/src/client/Client.cpp
|
|
--- The-Powder-Toy-93.3/src/client/Client.cpp 2018-04-02 00:19:03.000000000 +0300
|
|
+++ The-Powder-Toy-93.3.mod/src/client/Client.cpp 2018-06-15 13:55:36.199587222 +0300
|
|
@@ -84,7 +84,8 @@
|
|
|
|
//Read config
|
|
std::ifstream configFile;
|
|
- configFile.open("powder.pref", std::ios::binary);
|
|
+ MakeDirectory("/data/data/com.termux/files/home/.powdertoy");
|
|
+ configFile.open("/data/data/com.termux/files/home/.powdertoy/powder.pref", std::ios::binary);
|
|
if (configFile)
|
|
{
|
|
try
|
|
@@ -941,7 +942,8 @@
|
|
void Client::WritePrefs()
|
|
{
|
|
std::ofstream configFile;
|
|
- configFile.open("powder.pref", std::ios::trunc);
|
|
+ MakeDirectory("/data/data/com.termux/files/home/.powdertoy");
|
|
+ configFile.open("/data/data/com.termux/files/home/.powdertoy/powder.pref", std::ios::trunc);
|
|
|
|
if (configFile)
|
|
{
|
|
@@ -1144,6 +1146,7 @@
|
|
<< std::setw(2) << std::setfill('0') << std::hex << lastStampName;
|
|
std::string filename = std::string(STAMPS_DIR PATH_SEP + saveID.str()+".stm").c_str();
|
|
|
|
+ MakeDirectory("/data/data/com.termux/files/home/.powdertoy");
|
|
MakeDirectory(STAMPS_DIR);
|
|
|
|
Json::Value stampInfo;
|
|
@@ -1179,6 +1182,7 @@
|
|
|
|
void Client::updateStamps()
|
|
{
|
|
+ MakeDirectory("/data/data/com.termux/files/home/.powdertoy");
|
|
MakeDirectory(STAMPS_DIR);
|
|
|
|
std::ofstream stampsStream;
|