git repos / blockattack-game

commit d24a5159

Poul Sander · 2016-04-13 15:36
d24a515975b7215bd5bc3feca0095650a4438ab5 patch · browse files
parent bddd74d02705b1cbc6f306aad84179a3ac8bc428

Can now handle home paths with spaces in Linux.

Changed files

M source/code/os.cpp before
diff --git a/source/code/os.cpp b/source/code/os.cpp index 25e7b88..ae70809 100644 --- a/source/code/os.cpp +++ b/source/code/os.cpp
@@ -57,7 +57,7 @@ void setPathToSaveFiles(const std::string& path) {
void OsCreateSaveFolder() {
#if defined(__unix__)
- std::string cmd = "mkdir -p "+getPathToSaveFiles()+"/";
+ std::string cmd = "mkdir -p '"+getPathToSaveFiles()+"/'";
int retcode = system(cmd.c_str());
if (retcode != 0) {
std::cerr << "Failed to create: " << getPathToSaveFiles()+"/" << std::endl;