commit d24a5159
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;