mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-30 19:24:23 +01:00
Game browser: Switch existing installs to the large list on Games and Homebrew
Their old grid setting is no longer migrated, so everyone gets the new view there. Recent and Remote still keep theirs. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ce8f48980a
commit
754e49c6d6
2 files changed
+3
-6
No files matched your search
+3
-4
@@ -211,9 +211,10 @@ static int GameBrowserViewFromGridView(int legacyGridView, GameBrowserViewMode d
|
||||
return (int)(legacyGridView ? GameBrowserViewMode::GRID : GameBrowserViewMode::LIST);
|
||||
}
|
||||
|
||||
// Games and Homebrew switch everyone to the large list, ignoring the old setting. The others keep it.
|
||||
static int DefaultGameBrowserView1() { return GameBrowserViewFromGridView(g_Config.iLegacyGridView1, GameBrowserViewMode::GRID); }
|
||||
static int DefaultGameBrowserView2() { return GameBrowserViewFromGridView(g_Config.iLegacyGridView2, GameBrowserViewMode::LARGE_LIST); }
|
||||
static int DefaultGameBrowserView3() { return GameBrowserViewFromGridView(g_Config.iLegacyGridView3, GameBrowserViewMode::LARGE_LIST); }
|
||||
static int DefaultGameBrowserView2() { return (int)GameBrowserViewMode::LARGE_LIST; }
|
||||
static int DefaultGameBrowserView3() { return (int)GameBrowserViewMode::LARGE_LIST; }
|
||||
static int DefaultGameBrowserView4() { return GameBrowserViewFromGridView(g_Config.iLegacyGridView4, GameBrowserViewMode::LIST); }
|
||||
|
||||
static float DefaultGameGridScale() {
|
||||
@@ -305,8 +306,6 @@ static const ConfigSetting generalSettings[] = {
|
||||
ConfigSetting("ShowIDOnGameIcon", SETTING(g_Config, bShowIDOnGameIcon), false, CfgFlag::DEFAULT),
|
||||
ConfigSetting("GameGridScale", SETTING(g_Config, fGameGridScale), &DefaultGameGridScale, CfgFlag::DEFAULT),
|
||||
ConfigSetting("GridView1", SETTING(g_Config, iLegacyGridView1), -1, &LegacyGridViewToString, &LegacyGridViewFromString, CfgFlag::DONT_SAVE),
|
||||
ConfigSetting("GridView2", SETTING(g_Config, iLegacyGridView2), -1, &LegacyGridViewToString, &LegacyGridViewFromString, CfgFlag::DONT_SAVE),
|
||||
ConfigSetting("GridView3", SETTING(g_Config, iLegacyGridView3), -1, &LegacyGridViewToString, &LegacyGridViewFromString, CfgFlag::DONT_SAVE),
|
||||
ConfigSetting("GridView4", SETTING(g_Config, iLegacyGridView4), -1, &LegacyGridViewToString, &LegacyGridViewFromString, CfgFlag::DONT_SAVE),
|
||||
// These must come after GridView*, which their defaults are taken from.
|
||||
ConfigSetting("GameBrowserView1", SETTING(g_Config, iGameBrowserView1), &DefaultGameBrowserView1, CfgFlag::DEFAULT),
|
||||
|
||||
Reference in new issue
Block a user