From 888abc009792332ae47e216d8b6b03d166a9a399 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Wed, 26 Jun 2024 05:03:25 +0300 Subject: [PATCH] Remove time played setting --- apps/launcher/settingspage.cpp | 2 -- apps/launcher/ui/settingspage.ui | 10 ---------- apps/openmw/mwgui/savegamedialog.cpp | 2 +- components/settings/categories/saves.hpp | 1 - docs/source/reference/modding/settings/saves.rst | 13 ------------- files/lang/launcher_de.ts | 8 -------- files/lang/launcher_en.ts | 8 -------- files/lang/launcher_fr.ts | 8 -------- files/lang/launcher_ru.ts | 8 -------- files/lang/launcher_sv.ts | 8 -------- files/settings-default.cfg | 3 --- 11 files changed, 1 insertion(+), 70 deletions(-) diff --git a/apps/launcher/settingspage.cpp b/apps/launcher/settingspage.cpp index d336ab4f17..b7f97d24fb 100644 --- a/apps/launcher/settingspage.cpp +++ b/apps/launcher/settingspage.cpp @@ -319,7 +319,6 @@ bool Launcher::SettingsPage::loadSettings() // Miscellaneous { // Saves - loadSettingBool(Settings::saves().mTimeplayed, *timePlayedCheckbox); loadSettingInt(Settings::saves().mMaxQuicksaves, *maximumQuicksavesComboBox); // Other Settings @@ -512,7 +511,6 @@ void Launcher::SettingsPage::saveSettings() // Miscellaneous { // Saves Settings - saveSettingBool(*timePlayedCheckbox, Settings::saves().mTimeplayed); saveSettingInt(*maximumQuicksavesComboBox, Settings::saves().mMaxQuicksaves); // Other Settings diff --git a/apps/launcher/ui/settingspage.ui b/apps/launcher/ui/settingspage.ui index 758e08481e..9362920daf 100644 --- a/apps/launcher/ui/settingspage.ui +++ b/apps/launcher/ui/settingspage.ui @@ -1430,16 +1430,6 @@ Saves - - - - <html><head/><body><p>This setting determines whether the amount of the time the player has spent playing will be displayed for each saved game in the Load menu.</p></body></html> - - - Add "Time Played" to Saves - - - diff --git a/apps/openmw/mwgui/savegamedialog.cpp b/apps/openmw/mwgui/savegamedialog.cpp index f83250dfd0..94f25e118b 100644 --- a/apps/openmw/mwgui/savegamedialog.cpp +++ b/apps/openmw/mwgui/savegamedialog.cpp @@ -435,7 +435,7 @@ namespace MWGui mCurrentSlot->mProfile.mInGameTime.mMonth) << " " << hour << " " << (pm ? "#{Calendar:pm}" : "#{Calendar:am}"); - if (Settings::saves().mTimeplayed) + if (mCurrentSlot->mProfile.mTimePlayed > 0) { text << "\n" << "#{OMWEngine:TimePlayed}: " << formatTimeplayed(mCurrentSlot->mProfile.mTimePlayed); diff --git a/components/settings/categories/saves.hpp b/components/settings/categories/saves.hpp index 3a64785412..4861c68ba9 100644 --- a/components/settings/categories/saves.hpp +++ b/components/settings/categories/saves.hpp @@ -20,7 +20,6 @@ namespace Settings SettingValue mCharacter{ mIndex, "Saves", "character" }; SettingValue mAutosave{ mIndex, "Saves", "autosave" }; - SettingValue mTimeplayed{ mIndex, "Saves", "timeplayed" }; SettingValue mMaxQuicksaves{ mIndex, "Saves", "max quicksaves", makeMaxSanitizerInt(1) }; }; } diff --git a/docs/source/reference/modding/settings/saves.rst b/docs/source/reference/modding/settings/saves.rst index 0e58d66d84..88aa48fc56 100644 --- a/docs/source/reference/modding/settings/saves.rst +++ b/docs/source/reference/modding/settings/saves.rst @@ -21,19 +21,6 @@ This setting determines whether the game will be automatically saved when the ch This setting can be toggled in game with the Auto-Save when Rest button in the Prefs panel of the Options menu. -timeplayed ----------- - -:Type: boolean -:Range: True/False -:Default: False - -This setting determines whether the amount of the time the player has spent playing will be displayed -for each saved game in the Load menu. Currently, the counter includes time spent in menus, including the pause menu, -but does not include time spent with the game window minimized. - -This setting can only be configured by editing the settings configuration file. - max quicksaves -------------- diff --git a/files/lang/launcher_de.ts b/files/lang/launcher_de.ts index a39a3de4fd..9532fcc8ec 100644 --- a/files/lang/launcher_de.ts +++ b/files/lang/launcher_de.ts @@ -920,10 +920,6 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Saves - - <html><head/><body><p>This setting determines whether the amount of the time the player has spent playing will be displayed for each saved game in the Load menu.</p></body></html> - - JPG @@ -1415,10 +1411,6 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Can Zoom on Maps - - Add "Time Played" to Saves - - Notify on Saved Screenshot diff --git a/files/lang/launcher_en.ts b/files/lang/launcher_en.ts index de20f743e8..36506bfb50 100644 --- a/files/lang/launcher_en.ts +++ b/files/lang/launcher_en.ts @@ -1363,14 +1363,6 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Saves - - <html><head/><body><p>This setting determines whether the amount of the time the player has spent playing will be displayed for each saved game in the Load menu.</p></body></html> - - - - Add "Time Played" to Saves - - Maximum Quicksaves diff --git a/files/lang/launcher_fr.ts b/files/lang/launcher_fr.ts index 688726cf96..3cb015db67 100644 --- a/files/lang/launcher_fr.ts +++ b/files/lang/launcher_fr.ts @@ -920,10 +920,6 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Saves Sauvegardes - - <html><head/><body><p>This setting determines whether the amount of the time the player has spent playing will be displayed for each saved game in the Load menu.</p></body></html> - <html><body><p>Cette option affiche le temps de jeu de chaque sauvegarde dans leur menu de sélection.</p></body></html> - JPG JPG @@ -1418,10 +1414,6 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Can Zoom on Maps Permettre le zoom sur la carte - - Add "Time Played" to Saves - Ajoute le temps de jeu aux sauvegardes - Notify on Saved Screenshot Notifier l'enregistrement des captures d'écran diff --git a/files/lang/launcher_ru.ts b/files/lang/launcher_ru.ts index a64eae38a3..09b2fdf0e9 100644 --- a/files/lang/launcher_ru.ts +++ b/files/lang/launcher_ru.ts @@ -1140,14 +1140,6 @@ to default Morrowind fonts. Check this box if you still prefer original fonts ov Saves Сохранения - - <html><head/><body><p>This setting determines whether the amount of the time the player has spent playing will be displayed for each saved game in the Load menu.</p></body></html> - <html><head/><body><p>Эта настройка определяет, будет ли отображаться время с начала новой игры для выбранного сохранения в меню загрузки.</p></body></html> - - - Add "Time Played" to Saves - Выводить "Время в игре" в сохранениях - JPG JPG diff --git a/files/lang/launcher_sv.ts b/files/lang/launcher_sv.ts index 59d076b79c..2d590fea11 100644 --- a/files/lang/launcher_sv.ts +++ b/files/lang/launcher_sv.ts @@ -933,10 +933,6 @@ de ordinarie fonterna i Morrowind. Bocka denna ruta om du ändå föredrar ordin Saves Sparfiler - - <html><head/><body><p>This setting determines whether the amount of the time the player has spent playing will be displayed for each saved game in the Load menu.</p></body></html> - <html><head/><body><p>Denna inställning avgör huruvida mängden tid spelaren har spenderat i spelet kommer visas för varje sparat spel i Ladda spel-menyn.</p></body></html> - JPG JPG @@ -1434,10 +1430,6 @@ de ordinarie fonterna i Morrowind. Bocka denna ruta om du ändå föredrar ordin Can Zoom on Maps Kan zooma på kartor - - Add "Time Played" to Saves - Lägg till spelad tid i sparfiler - Notify on Saved Screenshot Ge notis vid sparad skärmdump diff --git a/files/settings-default.cfg b/files/settings-default.cfg index 26722268a0..325bc57618 100644 --- a/files/settings-default.cfg +++ b/files/settings-default.cfg @@ -566,9 +566,6 @@ character = # Automatically save the game whenever the player rests. autosave = true -# Display the time played on each save file in the load menu. -timeplayed = false - # The maximum number of quick (or auto) save slots to have. # If all slots are used, the oldest save is reused max quicksaves = 1