Windows fix: path doesn't require mode
This commit is contained in:
parent
a52568cc8d
commit
d496959f8b
1 changed files with 4 additions and 0 deletions
|
|
@ -84,7 +84,11 @@ GameEngine::GameEngine(const McRogueFaceConfig& cfg)
|
||||||
// Desktop: create save/ in working directory (WASM uses IDBFS mount from JS)
|
// Desktop: create save/ in working directory (WASM uses IDBFS mount from JS)
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if (stat("save", &st) != 0) {
|
if (stat("save", &st) != 0) {
|
||||||
|
#ifdef _WIN32
|
||||||
|
mkdir("save");
|
||||||
|
#else
|
||||||
mkdir("save", 0755);
|
mkdir("save", 0755);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue