mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Gamelist: Add option to hide the icon column (#604)
This commit is contained in:
parent
4b7d2f88ae
commit
fa4ad9b8c1
3 changed files with 18 additions and 2 deletions
|
@ -84,6 +84,8 @@ void CemuConfig::Load(XMLConfigParser& parser)
|
|||
game_list_style = gamelist.get("style", 0);
|
||||
game_list_column_order = gamelist.get("order", "");
|
||||
|
||||
show_icon_column = parser.get("show_icon_column", true);
|
||||
|
||||
// return default width if value in config file out of range
|
||||
auto loadColumnSize = [&gamelist] (const char *name, uint32 defaultWidth)
|
||||
{
|
||||
|
@ -385,6 +387,7 @@ void CemuConfig::Save(XMLConfigParser& parser)
|
|||
psize.set<sint32>("x", pad_size.x);
|
||||
psize.set<sint32>("y", pad_size.y);
|
||||
config.set<bool>("pad_maximized", pad_maximized);
|
||||
config.set<bool>("show_icon_column" , show_icon_column);
|
||||
|
||||
auto gamelist = config.set("GameList");
|
||||
gamelist.set("style", game_list_style);
|
||||
|
|
|
@ -418,6 +418,8 @@ struct CemuConfig
|
|||
ConfigValue<bool> did_show_graphic_pack_download{false};
|
||||
ConfigValue<bool> did_show_macos_disclaimer{false};
|
||||
|
||||
ConfigValue<bool> show_icon_column{ false };
|
||||
|
||||
int game_list_style = 0;
|
||||
std::string game_list_column_order;
|
||||
struct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue