1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 06:00:23 +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
if (envVar) {
path.assign(envVar);
# ifdef QB64_MACOSX
path.append("/Movies");
# else
path.append("/Videos");
if (!DirectoryExists(path.c_str())) {
path.assign(envVar);
path.append("/Movies");
if (!DirectoryExists(path.c_str()))
path.clear();
}
# endif
if (!DirectoryExists(path.c_str()))
path.clear();
}
#endif
break;
@ -189,12 +189,8 @@ void GetKnownDirectory(KnownDirectory kD, std::string &path) {
if (envVar) {
path.assign(envVar);
path.append("/Downloads");
if (!DirectoryExists(path.c_str())) {
path.assign(envVar);
path.append("/Download");
if (!DirectoryExists(path.c_str()))
path.clear();
}
if (!DirectoryExists(path.c_str()))
path.clear();
}
#endif
break;