Fix path to documents folder
This commit is contained in:
parent
1e7a097c64
commit
87fcbbb494
|
|
@ -581,15 +581,14 @@ Oneshot::Oneshot(RGSSThreadData &threadData) :
|
||||||
}
|
}
|
||||||
|
|
||||||
//Get documents path
|
//Get documents path
|
||||||
char *path = getenv("HOME")+"/Documents"; //xdg_user_dir_lookup_with_fallback("Documents", getenv("HOME"));
|
std::string path = std::string(getenv("HOME")) + std::string("/Documents"); //xdg_user_dir_lookup_with_fallback("Documents", getenv("HOME"));
|
||||||
p->docsPath = path;
|
p->docsPath = path.c_str();
|
||||||
p->gamePath = path;
|
p->gamePath = path.c_str();
|
||||||
#ifdef OS_OSX
|
#ifdef OS_OSX
|
||||||
p->journal = "_______.app";
|
p->journal = "_______.app";
|
||||||
#elif defined OS_LINUX
|
#elif defined OS_LINUX
|
||||||
p->journal = "_______";
|
p->journal = "_______";
|
||||||
#endif
|
#endif
|
||||||
free(path);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**********
|
/**********
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue