add Area Location String to PictureDialog

This commit is contained in:
Rafael 2016-04-23 20:15:59 +02:00
parent 5dc3e72faf
commit 043c657119
9 changed files with 133 additions and 9 deletions

View file

@ -43,7 +43,7 @@ QString AppEnv::getGameFolder(bool *ok)
dir.setPath(GTAV_FOLDER);
if (dir.exists())
{
*ok = true;
if (ok != NULL) *ok = true;
qputenv("GTAV_FOLDER", dir.absolutePath().toUtf8());
return dir.absolutePath();
}
@ -64,7 +64,7 @@ QString AppEnv::getGameFolder(bool *ok)
dir.setPath(GTAV_returnFolder);
if (dir.exists())
{
*ok = true;
if (ok != 0) *ok = true;
qputenv("GTAV_FOLDER", dir.absolutePath().toUtf8());
return dir.absolutePath();
}
@ -72,12 +72,12 @@ QString AppEnv::getGameFolder(bool *ok)
dir.setPath(GTAV_defaultFolder);
if (dir.exists())
{
*ok = true;
if (ok != 0) *ok = true;
qputenv("GTAV_FOLDER", dir.absolutePath().toUtf8());
return dir.absolutePath();
}
*ok = false;
if (ok != 0) *ok = false;
return "";
}