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:
parent
901bdb4cd3
commit
4d4b99ddd9
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue