Add an option to reset all game settings

This commit is contained in:
wiidev 2021-08-01 18:00:19 +01:00
parent a710e33d08
commit 6b0a425bb0
24 changed files with 79 additions and 0 deletions

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Obnovit hudbu na pozadí" msgstr "Obnovit hudbu na pozadí"

View File

@ -1824,6 +1824,9 @@ msgstr "Omdøb kategori"
msgid "Reset" msgid "Reset"
msgstr "Nulstil" msgstr "Nulstil"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Nulstil BG-musik" msgstr "Nulstil BG-musik"

View File

@ -1824,6 +1824,9 @@ msgstr "Hernoem categorie"
msgid "Reset" msgid "Reset"
msgstr "Resetten" msgstr "Resetten"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Reset achtergrond muziek" msgstr "Reset achtergrond muziek"

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "" msgstr ""

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "" msgstr ""

View File

@ -1824,6 +1824,9 @@ msgstr "Renom. catégorie"
msgid "Reset" msgid "Reset"
msgstr "Réinitialisation" msgstr "Réinitialisation"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Fond sonore par defaut" msgstr "Fond sonore par defaut"

View File

@ -1824,6 +1824,9 @@ msgstr "Kategorie umbenennen"
msgid "Reset" msgid "Reset"
msgstr "Zurücksetzen" msgstr "Zurücksetzen"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Musik zurücksetzen" msgstr "Musik zurücksetzen"

View File

@ -1824,6 +1824,9 @@ msgstr "Μετονομασία κατηγορίας"
msgid "Reset" msgid "Reset"
msgstr "Επανεκκίνηση" msgstr "Επανεκκίνηση"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Επαναφορά μουσικής υπόκρουσης." msgstr "Επαναφορά μουσικής υπόκρουσης."

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "" msgstr ""

View File

@ -1824,6 +1824,9 @@ msgstr "Rinomina categoria"
msgid "Reset" msgid "Reset"
msgstr "Riavvia" msgstr "Riavvia"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Ripristina musica sottofondo" msgstr "Ripristina musica sottofondo"

View File

@ -1824,6 +1824,9 @@ msgstr "カテゴリの名前を変更"
msgid "Reset" msgid "Reset"
msgstr "リセット" msgstr "リセット"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "BGMをリセット" msgstr "BGMをリセット"

View File

@ -1824,6 +1824,9 @@ msgstr "카테고리 이름 바꾸기"
msgid "Reset" msgid "Reset"
msgstr "리셋" msgstr "리셋"
msgid "Reset All Game Settings"
msgstr "모든 게임 설정 재설정"
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "배경 음악 리셋" msgstr "배경 음악 리셋"

View File

@ -1824,6 +1824,9 @@ msgstr "Gi nytt navn til kategori"
msgid "Reset" msgid "Reset"
msgstr "Tilbakestill" msgstr "Tilbakestill"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Tilbakestill BG musikk" msgstr "Tilbakestill BG musikk"

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "" msgstr ""

View File

@ -1824,6 +1824,9 @@ msgstr "Renomear"
msgid "Reset" msgid "Reset"
msgstr "Reiniciar" msgstr "Reiniciar"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Música padrão" msgstr "Música padrão"

View File

@ -1824,6 +1824,9 @@ msgstr "Renomear categ."
msgid "Reset" msgid "Reset"
msgstr "Reinicializar" msgstr "Reinicializar"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Reinicializar Música de Fundo" msgstr "Reinicializar Música de Fundo"

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "" msgstr ""

View File

@ -1824,6 +1824,9 @@ msgstr "修改分类名"
msgid "Reset" msgid "Reset"
msgstr "重启" msgstr "重启"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "重置背景音乐" msgstr "重置背景音乐"

View File

@ -1824,6 +1824,9 @@ msgstr "Renombrar categoría"
msgid "Reset" msgid "Reset"
msgstr "Reiniciar" msgstr "Reiniciar"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "Reiniciar Música de Fondo" msgstr "Reiniciar Música de Fondo"

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "återställ BG musik" msgstr "återställ BG musik"

View File

@ -1824,6 +1824,9 @@ msgstr "類別重新命名"
msgid "Reset" msgid "Reset"
msgstr "重新啟動" msgstr "重新啟動"
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "重設背景音樂" msgstr "重設背景音樂"

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "" msgstr ""

View File

@ -1824,6 +1824,9 @@ msgstr ""
msgid "Reset" msgid "Reset"
msgstr "" msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music" msgid "Reset BG Music"
msgstr "" msgstr ""

View File

@ -28,6 +28,7 @@
#include "FeatureSettingsMenu.hpp" #include "FeatureSettingsMenu.hpp"
#include "Channels/channels.h" #include "Channels/channels.h"
#include "settings/CGameCategories.hpp" #include "settings/CGameCategories.hpp"
#include "settings/CGameSettings.h"
#include "settings/GameTitles.h" #include "settings/GameTitles.h"
#include "settings/CSettings.h" #include "settings/CSettings.h"
#include "settings/SettingsPrompts.h" #include "settings/SettingsPrompts.h"
@ -84,6 +85,7 @@ FeatureSettingsMenu::FeatureSettingsMenu()
Options->SetName(Idx++, "%s", tr( "Update Nintendont" )); Options->SetName(Idx++, "%s", tr( "Update Nintendont" ));
Options->SetName(Idx++, "%s", tr( "WiiU Widescreen" )); Options->SetName(Idx++, "%s", tr( "WiiU Widescreen" ));
Options->SetName(Idx++, "%s", tr( "Boot Neek System Menu" )); Options->SetName(Idx++, "%s", tr( "Boot Neek System Menu" ));
Options->SetName(Idx++, "%s", tr( "Reset All Game Settings" ));
Options->SetName(Idx++, "%s", tr( "Reset Game Header Cache" )); Options->SetName(Idx++, "%s", tr( "Reset Game Header Cache" ));
OldTitlesOverride = Settings.titlesOverride; OldTitlesOverride = Settings.titlesOverride;
@ -739,6 +741,14 @@ int FeatureSettingsMenu::GetMenuInternal()
} }
} }
//! Reset All Game Settings
else if(ret == ++Idx)
{
int choice = WindowPrompt(tr( "Are you sure you want to reset?" ), 0, tr( "Yes" ), tr( "Cancel" ));
if (choice == 1)
GameSettings.RemoveAll();
}
//! Reset Game Header Cache //! Reset Game Header Cache
else if(ret == ++Idx) else if(ret == ++Idx)
{ {