Add an option to hide or show the game count

This commit is contained in:
wiidev 2023-01-01 17:00:22 +00:00
parent ec5ed33c3b
commit 7edecdaaa3
26 changed files with 87 additions and 0 deletions

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Zobrazit volné místo" msgstr "Zobrazit volné místo"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr "Vis Favorit på banner"
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Vis ledig plads" msgstr "Vis ledig plads"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Vis spiltæller" msgstr "Vis spiltæller"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Vrije ruimte weergeven" msgstr "Vrije ruimte weergeven"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Geef speelteller weer" msgstr "Geef speelteller weer"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr "Afficher les fav. sur bannières"
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Afficher l'espace libre" msgstr "Afficher l'espace libre"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Afficher le compteur d'utilis." msgstr "Afficher le compteur d'utilis."

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Zeige frei. Speicher" msgstr "Zeige frei. Speicher"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Zeige Spielzähler" msgstr "Zeige Spielzähler"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Προβολή ελεύθερου εναπομείναντος χώρου" msgstr "Προβολή ελεύθερου εναπομείναντος χώρου"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Προβολή συχνότητας χρήσης" msgstr "Προβολή συχνότητας χρήσης"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr "Mostra banner sui preferiti"
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Visualizza spazio libero" msgstr "Visualizza spazio libero"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Visualizza contatore" msgstr "Visualizza contatore"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "空き容量の表示" msgstr "空き容量の表示"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "プレイ回数の表示" msgstr "プレイ回数の表示"

View File

@ -2001,6 +2001,9 @@ msgstr "배너에서 즐겨착기 보기"
msgid "Show Free Space" msgid "Show Free Space"
msgstr "여유 공간 보기" msgstr "여유 공간 보기"
msgid "Show Game Count"
msgstr "게임 수 표시"
msgid "Show Play Count" msgid "Show Play Count"
msgstr "재생 횟수 보기" msgstr "재생 횟수 보기"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Vis ledig plass" msgstr "Vis ledig plass"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr "Mostrar Estrelas no Banner"
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Mostrar Espaço Livre" msgstr "Mostrar Espaço Livre"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Mostrar Contagem Jogos" msgstr "Mostrar Contagem Jogos"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Mostrar Espaço Livre" msgstr "Mostrar Espaço Livre"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Mostrar Contagem Jogos" msgstr "Mostrar Contagem Jogos"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "显示剩余空间" msgstr "显示剩余空间"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "显示执行次数" msgstr "显示执行次数"

View File

@ -2001,6 +2001,9 @@ msgstr "Mostrar Favoritos en banner"
msgid "Show Free Space" msgid "Show Free Space"
msgstr "Mostrar Espacio Libre" msgstr "Mostrar Espacio Libre"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "Mostrar Partidas" msgstr "Mostrar Partidas"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "顯示可用空間" msgstr "顯示可用空間"
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "顯示遊戲執行次數" msgstr "顯示遊戲執行次數"

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -2001,6 +2001,9 @@ msgstr ""
msgid "Show Free Space" msgid "Show Free Space"
msgstr "" msgstr ""
msgid "Show Game Count"
msgstr ""
msgid "Show Play Count" msgid "Show Play Count"
msgstr "" msgstr ""

View File

@ -142,6 +142,7 @@ void CSettings::SetDefault()
musicloopmode = ON; musicloopmode = ON;
marknewtitles = ON; marknewtitles = ON;
ShowFreeSpace = ON; ShowFreeSpace = ON;
ShowGameCount = ON;
PlaylogUpdate = OFF; PlaylogUpdate = OFF;
ParentalBlocks = BLOCK_ALL; ParentalBlocks = BLOCK_ALL;
InstallToDir = INSTALL_TO_NAME_GAMEID; InstallToDir = INSTALL_TO_NAME_GAMEID;
@ -388,6 +389,7 @@ bool CSettings::Save()
fprintf(file, "partition = %d\n", partition); fprintf(file, "partition = %d\n", partition);
fprintf(file, "marknewtitles = %d\n", marknewtitles); fprintf(file, "marknewtitles = %d\n", marknewtitles);
fprintf(file, "ShowFreeSpace = %d\n", ShowFreeSpace); fprintf(file, "ShowFreeSpace = %d\n", ShowFreeSpace);
fprintf(file, "ShowGameCount = %d\n", ShowGameCount);
fprintf(file, "InstallToDir = %d\n", InstallToDir); fprintf(file, "InstallToDir = %d\n", InstallToDir);
fprintf(file, "GameSplit = %d\n", GameSplit); fprintf(file, "GameSplit = %d\n", GameSplit);
fprintf(file, "InstallPartitions = %08X\n", (unsigned int)InstallPartitions); fprintf(file, "InstallPartitions = %08X\n", (unsigned int)InstallPartitions);
@ -761,6 +763,11 @@ bool CSettings::SetSetting(char *name, char *value)
ShowFreeSpace = atoi(value); ShowFreeSpace = atoi(value);
return true; return true;
} }
else if (strcmp(name, "ShowGameCount") == 0)
{
ShowGameCount = atoi(value);
return true;
}
else if (strcmp(name, "HomeMenu") == 0) else if (strcmp(name, "HomeMenu") == 0)
{ {
HomeMenu = atoi(value); HomeMenu = atoi(value);

View File

@ -150,6 +150,7 @@ class CSettings
short GameSplit; short GameSplit;
short PlaylogUpdate; short PlaylogUpdate;
short ShowFreeSpace; short ShowFreeSpace;
short ShowGameCount;
short HomeMenu; short HomeMenu;
short MultiplePartitions; short MultiplePartitions;
short USBPort; short USBPort;

View File

@ -156,6 +156,7 @@ GuiSettingsMenu::GuiSettingsMenu()
Options->SetName(Idx++, "%s", tr( "Show Play Count" )); Options->SetName(Idx++, "%s", tr( "Show Play Count" ));
Options->SetName(Idx++, "%s", tr( "Show Favorite on banner" )); Options->SetName(Idx++, "%s", tr( "Show Favorite on banner" ));
Options->SetName(Idx++, "%s", tr( "Show Free Space" )); Options->SetName(Idx++, "%s", tr( "Show Free Space" ));
Options->SetName(Idx++, "%s", tr( "Show Game Count" ));
Options->SetName(Idx++, "%s", tr( "HOME Menu" )); Options->SetName(Idx++, "%s", tr( "HOME Menu" ));
Options->SetName(Idx++, "%s", tr( "Use System Font" )); Options->SetName(Idx++, "%s", tr( "Use System Font" ));
Options->SetName(Idx++, "%s", tr( "Virtual Pointer Speed" )); Options->SetName(Idx++, "%s", tr( "Virtual Pointer Speed" ));
@ -244,6 +245,9 @@ void GuiSettingsMenu::SetOptionValues()
//! Settings: Show Free Space //! Settings: Show Free Space
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.ShowFreeSpace] )); Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.ShowFreeSpace] ));
//! Settings: Show Game Count
Options->SetValue(Idx++, "%s", tr( OnOffText[Settings.ShowGameCount] ));
//! Settings: Home Menu style //! Settings: Home Menu style
Options->SetValue(Idx++, "%s", tr( HomeMenuText[Settings.HomeMenu] )); Options->SetValue(Idx++, "%s", tr( HomeMenuText[Settings.HomeMenu] ));
@ -453,6 +457,12 @@ int GuiSettingsMenu::GetMenuInternal()
if (++Settings.ShowFreeSpace >= MAX_ON_OFF) Settings.ShowFreeSpace = 0; if (++Settings.ShowFreeSpace >= MAX_ON_OFF) Settings.ShowFreeSpace = 0;
} }
//! Settings: Show Game Count
else if (ret == ++Idx)
{
if (++Settings.ShowGameCount >= MAX_ON_OFF) Settings.ShowGameCount = 0;
}
//! Settings: Home Menu Style //! Settings: Home Menu Style
else if (ret == ++Idx) else if (ret == ++Idx)
{ {