MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / print_options

Function print_options

FEXCore/Scripts/config_generator.py:52–66  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

50 output_file.write("OPT_{0} ({1}, {2}, {3}, {4})\n".format(type.upper(), group_name.upper(), json_name.upper(), json_name, default_value))
51
52def print_options(options):
53 for op_group, group_vals in options.items():
54 for op_key, op_vals in group_vals.items():
55 default = op_vals["Default"]
56 if (op_vals["Type"] == "str" or op_vals["Type"] == "strarray"):
57 # Wrap the string argument in quotes
58 default = "\"" + default + "\""
59
60 print_config(
61 op_vals["Type"],
62 op_group,
63 op_key,
64 default)
65
66 output_file.write("\n")
67
68def print_unnamed_options(options):
69 output_file.write("// Unnamed configuration options\n")

Callers 1

Calls 1

print_configFunction · 0.85

Tested by

no test coverage detected