1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-18 16:32:33 +02:00

Fix ScreenPlay content path

This commit is contained in:
Elias Steurer 2019-10-19 21:30:07 +02:00
parent 11610c2883
commit 4ce1a87e00

View File

@ -102,7 +102,7 @@ Settings::Settings(const shared_ptr<GlobalVariables>& globalVariables,
std::optional<QVersionNumber> version = Util::getVersionNumberFromString(configObj.value("version").toString());
//Checks if the settings file has the same version as ScreeenPlay
//Checks if the settings file has the same version as ScreenPlay
if (version.has_value() && version.value() != m_version) {
// TODO(Kelteseth): Display error message
qWarning() << "Version missmatch fileVersion: " << version.value().toString() << "m_version: " << m_version.toString();
@ -119,7 +119,7 @@ Settings::Settings(const shared_ptr<GlobalVariables>& globalVariables,
steamTmpUrl.cd("content");
steamTmpUrl.cd("672870");
m_globalVariables->setLocalStoragePath(steamTmpUrl.path());
m_globalVariables->setLocalStoragePath("file:///" + steamTmpUrl.path());
} else {
m_globalVariables->setLocalStoragePath(QUrl::fromUserInput(configObj.value("absoluteStoragePath").toString()));
}
@ -211,7 +211,6 @@ void Settings::setupWidgetAndWindowPaths()
m_globalVariables->setWidgetExecutablePath(QUrl(workingDir.path() + "/ScreenPlayWidget/debug/ScreenPlayWidget.exe"));
m_globalVariables->setWallpaperExecutablePath(QUrl(workingDir.path() + "/ScreenPlayWallpaper/debug/ScreenPlayWallpaper.exe"));
#endif
}
// We need to detect the right base path so we can copy later the example projects