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"
msgstr ""
msgid "Reset All Game Settings"
msgstr ""
msgid "Reset BG Music"
msgstr "Obnovit hudbu na pozadí"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -28,6 +28,7 @@
#include "FeatureSettingsMenu.hpp"
#include "Channels/channels.h"
#include "settings/CGameCategories.hpp"
#include "settings/CGameSettings.h"
#include "settings/GameTitles.h"
#include "settings/CSettings.h"
#include "settings/SettingsPrompts.h"
@ -84,6 +85,7 @@ FeatureSettingsMenu::FeatureSettingsMenu()
Options->SetName(Idx++, "%s", tr( "Update Nintendont" ));
Options->SetName(Idx++, "%s", tr( "WiiU Widescreen" ));
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" ));
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
else if(ret == ++Idx)
{