|
@@ -8,7 +8,7 @@ namespace Settings
|
|
|
|
|
|
static QMap<QString, QVariant> defaults = {
|
|
|
// General info
|
|
|
- {"General/UI_scale", "100"},
|
|
|
+ {"General/UI_scale", 100},
|
|
|
{"General/CurrentInitStage", "0"},
|
|
|
{"General/MicroUpdates", false},
|
|
|
{"General/PatchDownloadDir", "data"},
|
|
@@ -16,11 +16,15 @@ static QMap<QString, QVariant> defaults = {
|
|
|
// Lotro Manager
|
|
|
{"Lotro/game_path", "none"},
|
|
|
{"Lotro/original_locale", "English"},
|
|
|
- {"Lotro/skip_raw_download", "True"},
|
|
|
- {"Lotro/no_splash_screen", "True"},
|
|
|
+ {"Lotro/skip_raw_download", true},
|
|
|
+ {"Lotro/no_splash_screen", false},
|
|
|
|
|
|
- // Databases download settings
|
|
|
+ // Backup
|
|
|
+ {"Backup/installed", false},
|
|
|
+ {"Backup/path", "/backup/"},
|
|
|
+ {"Backup/creation_time", "none"},
|
|
|
|
|
|
+ // Databases download settings
|
|
|
{"DatabaseDownload/text", false}, // TextsPatch
|
|
|
{"DatabaseDownload/font", false}, // TextsPatch
|
|
|
{"DatabaseDownload/image", false}, // GraphicsPatch
|
|
@@ -40,7 +44,6 @@ static QMap<QString, QVariant> defaults = {
|
|
|
{"DatabaseUpdated/video", false}, // VideosPatch
|
|
|
|
|
|
// Localisation components
|
|
|
- {"Components/fonts", false}, // TextsPatch
|
|
|
{"Components/texts_main", false}, // TextsPatch
|
|
|
{"Components/texts_items", false}, // TextsPatch
|
|
|
{"Components/texts_emotes", false}, // TextsPatch
|
|
@@ -49,6 +52,7 @@ static QMap<QString, QVariant> defaults = {
|
|
|
{"Components/textures", false}, // ImagesPatch
|
|
|
{"Components/sounds", false}, // SoundsPatch
|
|
|
{"Components/videos", false}, // VideosPatch
|
|
|
+ {"Components/micropatch", false}, // PatchList
|
|
|
|
|
|
// Network
|
|
|
{"Network/site_url", "http://translate.lotros.ru/"},
|
|
@@ -63,25 +67,11 @@ static QMap<QString, QVariant> defaults = {
|
|
|
{"Network/patch_updates_url", "http://translate.lotros.ru/groupware/check_updates"}
|
|
|
};
|
|
|
|
|
|
-static void setDefaultSettings()
|
|
|
-{
|
|
|
- QSettings settings;
|
|
|
- foreach (QString key, defaults.keys()) {
|
|
|
- settings.setValue(key, defaults[key]);
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-static QVariant getValue(QString key) {
|
|
|
- QSettings settings;
|
|
|
- return settings.value(key, defaults[key]);
|
|
|
-}
|
|
|
-
|
|
|
-static void setValue(QString key, QVariant value) {
|
|
|
- QSettings settings;
|
|
|
- settings.setValue(key, value);
|
|
|
-}
|
|
|
+ void setDefaultSettings();
|
|
|
|
|
|
+ QVariant getValue(QString key);
|
|
|
|
|
|
+ void setValue(QString key, QVariant value);
|
|
|
}
|
|
|
|
|
|
#endif // SETTINGS_H
|