|
@@ -11,6 +11,7 @@ static QMap<QString, QVariant> defaults = {
|
|
|
{"General/UI_scale", "100"},
|
|
|
{"General/CurrentInitStage", "0"},
|
|
|
{"General/MicroUpdates", "Disabled"},
|
|
|
+ {"General/PatchDownloadDir", "data"},
|
|
|
|
|
|
// Lotro Manager
|
|
|
{"Lotro/game_path", "none"},
|
|
@@ -27,33 +28,6 @@ static QMap<QString, QVariant> defaults = {
|
|
|
{"DatabaseDownload/font", "Disabled"},
|
|
|
{"DatabaseDownload/video", "Disabled"},
|
|
|
|
|
|
- // Databases applied status
|
|
|
- {"DatabaseApplied/sound", "False"},
|
|
|
- {"DatabaseApplied/text", "False"},
|
|
|
- {"DatabaseApplied/image", "False"},
|
|
|
- {"DatabaseApplied/loadscreen", "False"},
|
|
|
- {"DatabaseApplied/texture", "False"},
|
|
|
- {"DatabaseApplied/font", "False"},
|
|
|
- {"DatabaseApplied/video", "False"},
|
|
|
-
|
|
|
- // Databases downloaded paths
|
|
|
- {"DatabasePath/sound", "none"},
|
|
|
- {"DatabasePath/text", "none"},
|
|
|
- {"DatabasePath/image", "none"},
|
|
|
- {"DatabasePath/loadscreen", "none"},
|
|
|
- {"DatabasePath/texture", "none"},
|
|
|
- {"DatabasePath/font", "none"},
|
|
|
- {"DatabasePath/video", "none"},
|
|
|
-
|
|
|
- // Databases download date
|
|
|
- {"DatabaseDownloadDate/sound", "none"},
|
|
|
- {"DatabaseDownloadDate/text", "none"},
|
|
|
- {"DatabaseDownloadDate/image", "none"},
|
|
|
- {"DatabaseDownloadDate/loadscreen", "none"},
|
|
|
- {"DatabaseDownloadDate/texture", "none"},
|
|
|
- {"DatabaseDownloadDate/font", "none"},
|
|
|
- {"DatabaseDownloadDate/video", "none"},
|
|
|
-
|
|
|
// Localisation components
|
|
|
{"Components/fonts", "Disabled"},
|
|
|
{"Components/texts_main", "Disabled"},
|
|
@@ -73,7 +47,8 @@ static QMap<QString, QVariant> defaults = {
|
|
|
{"Network/game_servers_status", "http://translate.lotros.ru/servers.txt"},
|
|
|
{"Network/game_servers_message", "http://translate.lotros.ru/profmessage.txt"},
|
|
|
{"Network/weekly_code_url", "http://translate.lotros.ru/coupon.txt"},
|
|
|
- {"Network/news_list_url", "http://translate.lotros.ru/groupware/launcher_news/30/1"}
|
|
|
+ {"Network/news_list_url", "http://translate.lotros.ru/groupware/launcher_news/30/1"},
|
|
|
+ {"Network/patch_updates_url", "http://translate.lotros.ru/groupware/check_updates"}
|
|
|
};
|
|
|
|
|
|
static void setDefaultSettings()
|
|
@@ -85,7 +60,6 @@ static void setDefaultSettings()
|
|
|
}
|
|
|
|
|
|
static QVariant getValue(QString key) {
|
|
|
- Q_ASSERT(defaults.contains(key)); // any required key should be pre-defined in defaults
|
|
|
QSettings settings;
|
|
|
return settings.value(key, defaults[key]);
|
|
|
}
|