git repos / blockattack-game

commit 78df32c5

branches: v2.1.X

sago007 · 2017-06-05 18:51
78df32c58da7e701ee40ae587349bb8530c1a708 patch · browse files
parent af19221e24dca72a4433bc075f47c785b858eb7a

Now creating "My Games" in Windows if it does not exist. This closes issue #15.

Changed files

M source/code/os.cpp before
diff --git a/source/code/os.cpp b/source/code/os.cpp index 77e58ed..55145bc 100644 --- a/source/code/os.cpp +++ b/source/code/os.cpp
@@ -64,6 +64,7 @@ void OsCreateSaveFolder() {
}
#elif defined(_WIN32)
//Now for Windows NT/2k/xp/2k3 etc.
+ CreateDirectory(pf.getSaveGamesFolder1().c_str(), nullptr);
std::string tempA = getPathToSaveFiles();
CreateDirectory(tempA.c_str(),nullptr);
#endif