Fix Windows resource folder
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Syping 2021-04-02 20:02:35 +02:00
parent 7013ade1b5
commit 955f015de3

View file

@ -148,7 +148,11 @@ QString AppEnv::getPluginsFolder()
QString AppEnv::getImagesFolder() QString AppEnv::getImagesFolder()
{ {
#if defined(GTA5SYNC_QCONF) && defined(GTA5SYNC_CMAKE) #if defined(GTA5SYNC_QCONF) && defined(GTA5SYNC_CMAKE)
#ifdef Q_OS_WIN
return StringParser::convertBuildedString(GTA5SYNC_SHARE % QLatin1String("/resources"));
#else
return StringParser::convertBuildedString(GTA5SYNC_SHARE % QLatin1String("/APPNAME:/resources")); return StringParser::convertBuildedString(GTA5SYNC_SHARE % QLatin1String("/APPNAME:/resources"));
#endif
#else #else
return QLatin1String(":/img"); return QLatin1String(":/img");
#endif #endif