cfg: rearrange options (#357)

## Link to GitHub Issue, if one exists
n/a

## Description of change
In an attempt to make the Options tab smaller, move out more options to
advanced / development tabs.

## Testing
n/a
This commit is contained in:
bicarus-dev
2025-08-19 02:41:56 -07:00
committed by GitHub
parent 1dfcf8c087
commit 11b9790e6c
+27 -25
View File
@@ -17,7 +17,6 @@ static const std::vector<std::string> CATEGORY_ORDER_BASIC = {
"Game Options", "Game Options",
"Common", "Common",
"Network", "Network",
"Overlay",
"Graphics (Common)", "Graphics (Common)",
"Graphics (Full Screen)", "Graphics (Full Screen)",
"Graphics (Windowed)", "Graphics (Windowed)",
@@ -26,18 +25,21 @@ static const std::vector<std::string> CATEGORY_ORDER_BASIC = {
static const std::vector<std::string> CATEGORY_ORDER_ADVANCED = { static const std::vector<std::string> CATEGORY_ORDER_ADVANCED = {
"Game Options (Advanced)", "Game Options (Advanced)",
"Overlay",
"Network (Advanced)", "Network (Advanced)",
"Performance", "Performance",
"Miscellaneous", "Miscellaneous",
"Paths",
"Touch Parameters", "Touch Parameters",
"I/O Options", "I/O Options",
"NFC Card Readers", "NFC Card Readers",
}; };
static const std::vector<std::string> CATEGORY_ORDER_DEV = { static const std::vector<std::string> CATEGORY_ORDER_DEV = {
"Network Adapters", "Paths",
"Network (Development)",
"Audio (Hacks)",
"I/O Modules", "I/O Modules",
"Development", "Development",
"Debug Log",
}; };
static const std::vector<std::string> CATEGORY_ORDER_NONE = { static const std::vector<std::string> CATEGORY_ORDER_NONE = {
"" ""
@@ -268,7 +270,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "nolegacy", .name = "nolegacy",
.desc = "Disables legacy key activation in-game.", .desc = "Disables legacy key activation in-game.",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Miscellaneous", .category = "I/O Options",
}, },
{ {
.title = "Discord Rich Presence", .title = "Discord Rich Presence",
@@ -310,7 +312,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.desc = "This is NOT the EA service URL; use -url for that. " .desc = "This is NOT the EA service URL; use -url for that. "
"Force the use of an adapter with the specified network. Must also provide -subnet", "Force the use of an adapter with the specified network. Must also provide -subnet",
.type = OptionType::Text, .type = OptionType::Text,
.category = "Network Adapters", .category = "Network (Development)",
.sensitive = true, .sensitive = true,
}, },
{ {
@@ -318,21 +320,21 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "subnet", .name = "subnet",
.desc = "Force the use of an adapter with the specified subnet. Must also provide -network", .desc = "Force the use of an adapter with the specified subnet. Must also provide -network",
.type = OptionType::Text, .type = OptionType::Text,
.category = "Network Adapters", .category = "Network (Development)",
}, },
{ {
.title = "Disable Network Fixes", .title = "Disable Network Fixes",
.name = "netfixdisable", .name = "netfixdisable",
.desc = "Force disables network fixes", .desc = "Force disables network fixes",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Network Adapters", .category = "Network (Development)",
}, },
{ {
.title = "HTTP/1.1", .title = "HTTP/1.1",
.name = "http11", .name = "http11",
.desc = "Sets EA3 http11 value", .desc = "Sets EA3 http11 value",
.type = OptionType::Enum, .type = OptionType::Enum,
.category = "Network (Advanced)", .category = "Network (Development)",
.elements = {{"0", "Off"}, {"1", "On"}}, .elements = {{"0", "Off"}, {"1", "On"}},
}, },
{ {
@@ -340,7 +342,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "ssldisable", .name = "ssldisable",
.desc = "Prevents the SSL protocol from being registered", .desc = "Prevents the SSL protocol from being registered",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Network (Advanced)", .category = "Network (Development)",
}, },
{ {
.title = "URL Slash", .title = "URL Slash",
@@ -355,7 +357,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "r", .name = "r",
.desc = "Set custom SOFTID override", .desc = "Set custom SOFTID override",
.type = OptionType::Text, .type = OptionType::Text,
.category = "Network (Advanced)", .category = "Network (Development)",
.sensitive = true, .sensitive = true,
}, },
{ {
@@ -1412,7 +1414,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "sextet", .name = "sextet",
.desc = "Use a SextetStream device on a given COM port", .desc = "Use a SextetStream device on a given COM port",
.type = OptionType::Text, .type = OptionType::Text,
.category = "Miscellaneous", .category = "I/O Options",
}, },
{ {
.title = "Enable BemaniTools 5 API", .title = "Enable BemaniTools 5 API",
@@ -1513,7 +1515,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
"you use a different backend instead of exclusive WASAPI).\n\n" "you use a different backend instead of exclusive WASAPI).\n\n"
"Check this if you want games to natively access your audio device", "Check this if you want games to natively access your audio device",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Audio", .category = "Audio (Hacks)",
}, },
{ {
// spice2x_DisableVolumeHook // spice2x_DisableVolumeHook
@@ -1525,7 +1527,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
"Default: off (prevent games from changing audio volume by hooking IAudioEndpointVolume).\n\n" "Default: off (prevent games from changing audio volume by hooking IAudioEndpointVolume).\n\n"
"Check this if you want games to freely change your volume", "Check this if you want games to freely change your volume",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Audio", .category = "Audio (Hacks)",
}, },
{ {
.title = "Spice Audio Hook Backend", .title = "Spice Audio Hook Backend",
@@ -1550,7 +1552,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
"This is automatically enabled when required and not normally needed", "This is automatically enabled when required and not normally needed",
.type = OptionType::Bool, .type = OptionType::Bool,
.hidden = true, .hidden = true,
.category = "Audio", .category = "Audio (Hacks)",
}, },
{ {
// DelayBy5Seconds // DelayBy5Seconds
@@ -1607,7 +1609,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "loglevel", .name = "loglevel",
.desc = "Set the level of detail for AVS log messages written to the log. Does not affect logging from spice", .desc = "Set the level of detail for AVS log messages written to the log. Does not affect logging from spice",
.type = OptionType::Enum, .type = OptionType::Enum,
.category = "Performance", .category = "Debug Log",
.elements = {{"fatal", ""}, {"warning", ""}, {"info", ""}, {"misc", ""}, {"all", ""}, {"disable", ""}}, .elements = {{"fatal", ""}, {"warning", ""}, {"info", ""}, {"misc", ""}, {"all", ""}, {"disable", ""}},
}, },
{ {
@@ -1615,14 +1617,14 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "automap", .name = "automap",
.desc = "Enable automap in patch configuration", .desc = "Enable automap in patch configuration",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Network (Development)",
}, },
{ {
.title = "EA Netdump", .title = "EA Netdump",
.name = "netdump", .name = "netdump",
.desc = "Enable automap in network dumping configuration", .desc = "Enable automap in network dumping configuration",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Network (Development)",
}, },
{ {
.title = "Discord RPC AppID Override", .title = "Discord RPC AppID Override",
@@ -1636,35 +1638,35 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "logblock", .name = "logblock",
.desc = "Slower but safer logging used for debugging", .desc = "Slower but safer logging used for debugging",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Debug Log",
}, },
{ {
.title = "Debug CreateFile", .title = "Debug CreateFile",
.name = "createfiledebug", .name = "createfiledebug",
.desc = "Outputs CreateFile debug prints", .desc = "Outputs CreateFile debug prints",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Debug Log",
}, },
{ {
.title = "Verbose Graphics Logging", .title = "Verbose Graphics Logging",
.name = "graphicsverbose", .name = "graphicsverbose",
.desc = "Enable the verbose logging of graphics hook code", .desc = "Enable the verbose logging of graphics hook code",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Debug Log",
}, },
{ {
.title = "Verbose AVS Logging", .title = "Verbose AVS Logging",
.name = "avsverbose", .name = "avsverbose",
.desc = "Enable the verbose logging of AVS filesystem functions", .desc = "Enable the verbose logging of AVS filesystem functions",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Debug Log",
}, },
{ {
.title = "Disable Colored Output", .title = "Disable Colored Output",
.name = "nocolor", .name = "nocolor",
.desc = "Disable terminal colors for log outputs to console", .desc = "Disable terminal colors for log outputs to console",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Debug Log",
}, },
{ {
.title = "Disable ACP Hook", .title = "Disable ACP Hook",
@@ -1699,7 +1701,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "pebprint", .name = "pebprint",
.desc = "Prints PEB on startup to console", .desc = "Prints PEB on startup to console",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Development", .category = "Debug Log",
}, },
{ {
// DumpSystemInfo // DumpSystemInfo
@@ -1707,7 +1709,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.name = "sysdump", .name = "sysdump",
.desc = "Print system information to the log on startup. Default: basic", .desc = "Print system information to the log on startup. Default: basic",
.type = OptionType::Enum, .type = OptionType::Enum,
.category = "Development", .category = "Debug Log",
.elements = { .elements = {
{"none", "Nothing"}, {"none", "Nothing"},
{"basic", "OS, CPU, SMBIOS, GPU"}, {"basic", "OS, CPU, SMBIOS, GPU"},
@@ -1937,7 +1939,7 @@ static const std::vector<OptionDefinition> OPTION_DEFINITIONS = {
.desc = "For certain buggy ASIO drivers, force unload of ASIO driver when audio stream stops. " .desc = "For certain buggy ASIO drivers, force unload of ASIO driver when audio stream stops. "
"Used for working around ASIO drivers that lock up after force quitting games", "Used for working around ASIO drivers that lock up after force quitting games",
.type = OptionType::Bool, .type = OptionType::Bool,
.category = "Audio", .category = "Audio (Hacks)",
}, },
{ {
// spice2x_IIDXNoESpec // spice2x_IIDXNoESpec