1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-12 23:55:13 +00:00

Fix some known directories

This commit is contained in:
a740g 2023-12-14 02:47:29 +05:30
parent 901bdb4cd3
commit 4d4b99ddd9

View file

@ -164,13 +164,13 @@ void GetKnownDirectory(KnownDirectory kD, std::string &path) {
#else #else
if (envVar) { if (envVar) {
path.assign(envVar); path.assign(envVar);
# ifdef QB64_MACOSX
path.append("/Movies");
# else
path.append("/Videos"); path.append("/Videos");
if (!DirectoryExists(path.c_str())) { # endif
path.assign(envVar); if (!DirectoryExists(path.c_str()))
path.append("/Movies"); path.clear();
if (!DirectoryExists(path.c_str()))
path.clear();
}
} }
#endif #endif
break; break;
@ -189,12 +189,8 @@ void GetKnownDirectory(KnownDirectory kD, std::string &path) {
if (envVar) { if (envVar) {
path.assign(envVar); path.assign(envVar);
path.append("/Downloads"); path.append("/Downloads");
if (!DirectoryExists(path.c_str())) { if (!DirectoryExists(path.c_str()))
path.assign(envVar); path.clear();
path.append("/Download");
if (!DirectoryExists(path.c_str()))
path.clear();
}
} }
#endif #endif
break; break;