From 272d2747cdab9b6ae8b070885f063ef9b18e5d3d Mon Sep 17 00:00:00 2001 From: Lioncache Date: Sat, 6 Sep 2025 11:18:36 -0400 Subject: [PATCH] config_generator: Remove excess formatting arguments for EnumParser handling Each instance had one more argument than necessary. --- FEXCore/Scripts/config_generator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/FEXCore/Scripts/config_generator.py b/FEXCore/Scripts/config_generator.py index 3b49ee0e0..ae77e019d 100644 --- a/FEXCore/Scripts/config_generator.py +++ b/FEXCore/Scripts/config_generator.py @@ -418,7 +418,7 @@ def print_parse_argloader_options(options): if (value_type == "strenum"): output_argloader.write("\tfextl::string UserValue = Options[\"{0}\"];\n".format(op_key)) - output_argloader.write("\tSet(FEXCore::Config::ConfigOption::CONFIG_{}, FEXCore::Config::EnumParser(FEXCore::Config::{}_EnumPairs, UserValue));\n".format(op_key.upper(), op_key, op_key, op_key)) + output_argloader.write("\tSet(FEXCore::Config::ConfigOption::CONFIG_{}, FEXCore::Config::EnumParser(FEXCore::Config::{}_EnumPairs, UserValue));\n".format(op_key.upper(), op_key, op_key)) elif (value_type == "strarray"): # these need a bit more help output_argloader.write("\tauto Array = Options.all(\"{0}\");\n".format(op_key)) @@ -447,7 +447,7 @@ def print_parse_envloader_options(options): value_type = op_vals["Type"] if (value_type == "strenum"): output_argloader.write("else if (Key == \"FEX_{0}\") {{\n".format(op_key.upper())) - output_argloader.write("\tValue = FEXCore::Config::EnumParser(FEXCore::Config::{}_EnumPairs, Value_View);\n".format(op_key, op_key, op_key)) + output_argloader.write("\tValue = FEXCore::Config::EnumParser(FEXCore::Config::{}_EnumPairs, Value_View);\n".format(op_key, op_key)) output_argloader.write("}\n") if ("ArgumentHandler" in op_vals): @@ -467,7 +467,7 @@ def print_parse_jsonloader_options(options): value_type = op_vals["Type"] if (value_type == "strenum"): output_argloader.write("else if (KeyName == \"{0}\") {{\n".format(op_key)) - output_argloader.write("\tSet(KeyOption, FEXCore::Config::EnumParser(FEXCore::Config::{}_EnumPairs, Value_View));\n".format(op_key, op_key, op_key)) + output_argloader.write("\tSet(KeyOption, FEXCore::Config::EnumParser(FEXCore::Config::{}_EnumPairs, Value_View));\n".format(op_key, op_key)) output_argloader.write("}\n") elif (value_type == "strarray"): output_argloader.write("else if (KeyName == \"{0}\") {{\n".format(op_key))