From b4c5729bf5441d11895bf2677a4b363bc937f598 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 3 Sep 2015 18:31:11 +0200 Subject: [PATCH] fix Decks, Pics replays & sounds paths on Portable build --- cockatrice/src/settingscache.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/settingscache.cpp b/cockatrice/src/settingscache.cpp index 3a1b7b5c..12963797 100644 --- a/cockatrice/src/settingscache.cpp +++ b/cockatrice/src/settingscache.cpp @@ -26,7 +26,13 @@ QString SettingsCache::getSettingsPath() void SettingsCache::translateLegacySettings() { - //NOTE Please remove this legacy setting translation after 2016-9-1 (+1 year after creation) +#ifdef PORTABLE_BUILD + setDeckPath("data/decks"); + setReplaysPath("data/replays"); + setPicsPath("data/pics"); + setSoundPath("data/sounds"); + return; +#endif //Layouts QFile layoutFile(getSettingsPath()+"layouts/deckLayout.ini"); @@ -627,4 +633,4 @@ void SettingsCache::setNotifyAboutUpdate(int _notifyaboutupdate) { notifyAboutUpdates = _notifyaboutupdate; settings->setValue("personal/updatenotification", notifyAboutUpdates); -} \ No newline at end of file +}