Add sections to many runner options

This commit is contained in:
Daniel Johnson 2023-02-11 15:50:30 -05:00
parent ee603ebbf8
commit 40a8946da8
13 changed files with 167 additions and 115 deletions

View file

@ -70,6 +70,7 @@ class atari800(Runner):
"option": "fullscreen",
"type": "bool",
"default": False,
"section": _("Graphics"),
"label": _("Fullscreen"),
},
{
@ -77,6 +78,7 @@ class atari800(Runner):
"type": "choice",
"choices": get_resolutions(),
"default": "desktop",
"section": _("Graphics"),
"label": _("Fullscreen resolution"),
},
]

View file

@ -79,19 +79,23 @@ class dosbox(Runner):
]
runner_options = [
{
"option":
"scaler",
"label":
_("Graphic scaler"),
"type":
"choice",
"choices":
scaler_modes,
"default":
"normal3x",
"option": "fullscreen",
"section": _("Graphics"),
"label": _("Open game in fullscreen"),
"type": "bool",
"default": False,
"help": _("Tells DOSBox to launch the game in fullscreen."),
},
{
"option": "scaler",
"section": _("Graphics"),
"label": _("Graphic scaler"),
"type": "choice",
"choices": scaler_modes,
"default": "normal3x",
"help":
_("The algorithm used to scale up the game's base "
"resolution, resulting in different visual styles. "),
_("The algorithm used to scale up the game's base "
"resolution, resulting in different visual styles. "),
},
{
"option": "exit",
@ -100,13 +104,6 @@ class dosbox(Runner):
"default": True,
"help": _("Shut down DOSBox when the game is quit."),
},
{
"option": "fullscreen",
"label": _("Open game in fullscreen"),
"type": "bool",
"default": False,
"help": _("Tells DOSBox to launch the game in fullscreen."),
},
]
def make_absolute(self, path):

View file

@ -138,13 +138,6 @@ class easyrpg(Runner):
]
runner_options = [
{
"option": "fullscreen",
"type": "bool",
"label": _("Fullscreen"),
"help": _("Start in fullscreen mode."),
"default": False
},
{
"option": "audio",
"type": "bool",
@ -155,63 +148,6 @@ class easyrpg(Runner):
),
"default": True
},
{
"option": "mouse",
"type": "bool",
"label": _("Enable mouse"),
"help": _(
"Use mouse click for decision and scroll wheel for lists."
),
"default": False
},
{
"option": "touch",
"type": "bool",
"label": _("Enable touch"),
"help": _("Use one/two finger tap for decision/cancel."),
"default": False
},
{
"option": "hide_title",
"type": "bool",
"label": _("Hide title"),
"help": _(
"Hide the title background image and center the command menu."
),
"default": False
},
{
"option": "vsync",
"type": "bool",
"label": _("Enable VSync"),
"help": _(
"Switch off to disable VSync and use the FPS limit. "
"VSync may or may not be supported on all platforms."
),
"default": True
},
{
"option": "fps_limit",
"type": "string",
"label": _("FPS limit"),
"help": _(
"Set a custom frames per second limit. If unspecified, "
"the default is 60 FPS. Set to '0' to disable the frame "
"limiter. This option may not be supported on all platforms."
)
},
{
"option": "show_fps",
"type": "choice",
"label": _("Show FPS"),
"help": _("Enable frames per second counter."),
"choices": [
(_("Disabled"), "off"),
(_("Fullscreen & title bar"), "on"),
(_("Fullscreen, title bar & window"), "full")
],
"default": "off"
},
{
"option": "seed",
"type": "string",
@ -225,9 +161,81 @@ class easyrpg(Runner):
"help": _("Enable TestPlay mode."),
"default": False
},
{
"option": "mouse",
"type": "bool",
"section": _("Controls"),
"label": _("Enable mouse"),
"help": _(
"Use mouse click for decision and scroll wheel for lists."
),
"default": False
},
{
"option": "touch",
"type": "bool",
"section": _("Controls"),
"label": _("Enable touch"),
"help": _("Use one/two finger tap for decision/cancel."),
"default": False
},
{
"option": "fullscreen",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen"),
"help": _("Start in fullscreen mode."),
"default": False
},
{
"option": "hide_title",
"type": "bool",
"section": _("Graphics"),
"label": _("Hide title"),
"help": _(
"Hide the title background image and center the command menu."
),
"default": False
},
{
"option": "vsync",
"type": "bool",
"section": _("Graphics"),
"label": _("Enable VSync"),
"help": _(
"Switch off to disable VSync and use the FPS limit. "
"VSync may or may not be supported on all platforms."
),
"default": True
},
{
"option": "fps_limit",
"type": "string",
"section": _("Graphics"),
"label": _("FPS limit"),
"help": _(
"Set a custom frames per second limit. If unspecified, "
"the default is 60 FPS. Set to '0' to disable the frame "
"limiter. This option may not be supported on all platforms."
)
},
{
"option": "show_fps",
"type": "choice",
"section": _("Graphics"),
"label": _("Show FPS"),
"help": _("Enable frames per second counter."),
"choices": [
(_("Disabled"), "off"),
(_("Fullscreen & title bar"), "on"),
(_("Fullscreen, title bar & window"), "full")
],
"default": "off"
},
{
"option": "rtp",
"type": "bool",
"section": _("Runtime Package"),
"label": _("Enable RTP"),
"help": _(
"Switch off to disable support for the Runtime Package (RTP)."
@ -237,6 +245,7 @@ class easyrpg(Runner):
{
"option": "rpg2k_rtp_path",
"type": "directory_chooser",
"section": _("Runtime Package"),
"label": _("RPG2000 RTP location"),
"help": _(
"Full path to a directory containing an "
@ -246,6 +255,7 @@ class easyrpg(Runner):
{
"option": "rpg2k3_rtp_path",
"type": "directory_chooser",
"section": _("Runtime Package"),
"label": _("RPG2003 RTP location"),
"help": _(
"Full path to a directory containing an "
@ -255,6 +265,7 @@ class easyrpg(Runner):
{
"option": "rpg_rtp_path",
"type": "directory_chooser",
"section": _("Runtime Package"),
"label": _("Fallback RTP location"),
"help": _("Full path to a directory containing a combined RTP.")
},

View file

@ -59,12 +59,14 @@ class hatari(Runner):
{
"option": "fullscreen",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen"),
"default": False,
},
{
"option": "zoom",
"type": "bool",
"section": _("Graphics"),
"label": _("Scale up display by 2 (Atari ST/STE)"),
"default": True,
"help": _("Double the screen size in windowed mode."),
@ -72,6 +74,7 @@ class hatari(Runner):
{
"option": "borders",
"type": "bool",
"section": _("Graphics"),
"label": _("Add borders to display"),
"default": False,
"help": _(
@ -86,6 +89,7 @@ class hatari(Runner):
{
"option": "status",
"type": "bool",
"section": _("Graphics"),
"label": _("Display status bar"),
"default": False,
"help": _(
@ -97,6 +101,7 @@ class hatari(Runner):
{
"option": "joy0",
"type": "choice",
"section": _("Joysticks"),
"label": _("Joystick 0"),
"choices": joystick_choices,
"default": "none",
@ -104,6 +109,7 @@ class hatari(Runner):
{
"option": "joy1",
"type": "choice",
"section": _("Joysticks"),
"label": _("Joystick 1"),
"choices": joystick_choices,
"default": "real",

View file

@ -40,11 +40,13 @@ class jzintv(Runner):
{
"option": "fullscreen",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen")
},
{
"option": "resolution",
"type": "choice",
"section": _("Graphics"),
"label": _("Resolution"),
"choices": (
("320 x 200", "0"),

View file

@ -127,6 +127,7 @@ class mame(Runner): # pylint: disable=invalid-name
{
"option": "autoboot_command",
"type": "string",
"section": _("Autoboot"),
"label": _("Autoboot command"),
"help": _("Autotype this command when the system has started, "
"an enter keypress is automatically added."),
@ -134,6 +135,7 @@ class mame(Runner): # pylint: disable=invalid-name
{
"option": "autoboot_delay",
"type": "range",
"section": _("Autoboot"),
"label": _("Delay before entering autoboot command"),
"min": 0,
"max": 120,
@ -154,12 +156,14 @@ class mame(Runner): # pylint: disable=invalid-name
{
"option": "fullscreen",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen"),
"default": True,
},
{
"option": "crt",
"type": "bool",
"section": _("Graphics"),
"label": _("CRT effect ()"),
"help": _("Applies a CRT effect to the screen."
"Requires OpenGL renderer."),
@ -168,6 +172,7 @@ class mame(Runner): # pylint: disable=invalid-name
{
"option": "video",
"type": "choice",
"section": _("Graphics"),
"label": _("Video backend"),
"choices": (
(_("Auto"), ""),
@ -181,6 +186,7 @@ class mame(Runner): # pylint: disable=invalid-name
{
"option": "waitvsync",
"type": "bool",
"section": _("Graphics"),
"label": _("Wait for VSync"),
"help":
_("Enable waiting for the start of vblank before "

View file

@ -71,16 +71,15 @@ class mednafen(Runner):
{
"option": "fs",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen"),
"default": False
},
{
"option":
"stretch",
"type":
"choice",
"label":
_("Aspect ratio"),
"option": "stretch",
"type": "choice",
"section": _("Graphics"),
"label": _("Aspect ratio"),
"choices": (
(_("Disabled"), "0"),
(_("Stretched"), "full"),
@ -88,16 +87,13 @@ class mednafen(Runner):
(_("Integer scale"), "aspect_int"),
(_("Multiple of 2 scale"), "aspect_mult2"),
),
"default":
"aspect_int",
"default": "aspect_int",
},
{
"option":
"scaler",
"type":
"choice",
"label":
_("Video scaler"),
"option": "scaler",
"type": "choice",
"section": _("Graphics"),
"label": _("Video scaler"),
"choices": (
("none", "none"),
("hq2x", "hq2x"),
@ -116,16 +112,12 @@ class mednafen(Runner):
("nny3x", "nny3x"),
("nny4x", "nny4x"),
),
"default":
DEFAULT_MEDNAFEN_SCALER,
"default": DEFAULT_MEDNAFEN_SCALER,
},
{
"option":
"sound_device",
"type":
"choice",
"label":
_("Sound device"),
"option": "sound_device",
"type": "choice",
"label": _("Sound device"),
"choices": (
(_("Mednafen default"), "default"),
(_("ALSA default"), "sexyal-literal-default"),
@ -133,8 +125,7 @@ class mednafen(Runner):
("hw:1", "hw:1,0"),
("hw:2", "hw:2,0"),
),
"default":
"sexyal-literal-default"
"default": "sexyal-literal-default"
},
{
"option": "dont_map_controllers",

View file

@ -59,6 +59,7 @@ class o2em(Runner):
"option": "controller1",
"type": "choice",
"choices": controller_choices,
"section": _("Controllers"),
"label": _("First controller"),
"default": "2",
},
@ -66,18 +67,21 @@ class o2em(Runner):
"option": "controller2",
"type": "choice",
"choices": controller_choices,
"section": _("Controllers"),
"label": _("Second controller"),
"default": "1",
},
{
"option": "fullscreen",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen"),
"default": False,
},
{
"option": "scanlines",
"type": "bool",
"section": _("Graphics"),
"label": _("Scanlines display style"),
"default": False,
"help": _("Activates a display filter adding scanlines to imitate "

View file

@ -35,12 +35,14 @@ class pico8(Runner):
{
"option": "fullscreen",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen"),
"default": True,
"help": _("Launch in fullscreen."),
},
{
"option": "window_size",
"section": _("Graphics"),
"label": _("Window size"),
"type": "string",
"default": "640x512",

View file

@ -44,6 +44,7 @@ class reicast(Runner):
{
"option": "device_id_1",
"type": "choice",
"section": _("Gamepads"),
"label": _("Gamepad 1"),
"choices": self.get_joypads,
"default": "-1",
@ -51,6 +52,7 @@ class reicast(Runner):
{
"option": "device_id_2",
"type": "choice",
"section": _("Gamepads"),
"label": _("Gamepad 2"),
"choices": self.get_joypads,
"default": "-1",
@ -58,6 +60,7 @@ class reicast(Runner):
{
"option": "device_id_3",
"type": "choice",
"section": _("Gamepads"),
"label": _("Gamepad 3"),
"choices": self.get_joypads,
"default": "-1",
@ -65,6 +68,7 @@ class reicast(Runner):
{
"option": "device_id_4",
"type": "choice",
"section": _("Gamepads"),
"label": _("Gamepad 4"),
"choices": self.get_joypads,
"default": "-1",

View file

@ -73,12 +73,14 @@ class scummvm(Runner):
runner_options = [
{
"option": "fullscreen",
"section": _("Graphics"),
"label": _("Fullscreen"),
"type": "bool",
"default": True,
},
{
"option": "subtitles",
"section": _("Graphics"),
"label": _("Enable subtitles"),
"type": "bool",
"default": False,
@ -86,6 +88,7 @@ class scummvm(Runner):
},
{
"option": "aspect",
"section": _("Graphics"),
"label": _("Aspect ratio correction"),
"type": "bool",
"default": True,
@ -98,6 +101,7 @@ class scummvm(Runner):
},
{
"option": "gfx-mode",
"section": _("Graphics"),
"label": _("Graphic scaler"),
"type": "choice",
"default": "3x",
@ -121,6 +125,7 @@ class scummvm(Runner):
},
# {
# "option": "scale-factor",
# "section": _("Graphics"),
# "label": _("Scaler factor"),
# "type": "choice",
# "choices": [
@ -137,6 +142,7 @@ class scummvm(Runner):
# },
{
"option": "render-mode",
"section": _("Graphics"),
"label": _("Render mode"),
"type": "choice",
"choices": [
@ -158,6 +164,7 @@ class scummvm(Runner):
},
{
"option": "filtering",
"section": _("Graphics"),
"label": _("Filtering"),
"type": "bool",
"help": _("Uses bilinear interpolation instead of nearest neighbor "
@ -212,6 +219,7 @@ class scummvm(Runner):
{
"option": "music-tempo",
"type": "string",
"section": _("Audio"),
"label": _("Music tempo"),
"help": _("Sets music tempo (in percent, 50-200) for SCUMM games (default: 100)"),
"advanced": True,
@ -219,12 +227,14 @@ class scummvm(Runner):
{
"option": "dimuse-tempo",
"type": "string",
"section": _("Audio"),
"label": _("Digital iMuse tempo"),
"help": _("Sets internal Digital iMuse tempo (10 - 100) per second (default: 10)"),
"advanced": True,
},
{
"option": "music-driver",
"section": _("Audio"),
"label": _("Music driver"),
"type": "choice",
"choices": [
@ -246,6 +256,7 @@ class scummvm(Runner):
},
{
"option": "output-rate",
"section": _("Audio"),
"label": _("Output rate"),
"type": "choice",
"choices": [
@ -258,6 +269,7 @@ class scummvm(Runner):
},
{
"option": "opl-driver",
"section": _("Audio"),
"label": _("OPL driver"),
"type": "choice",
"choices": [
@ -277,6 +289,7 @@ class scummvm(Runner):
{
"option": "music-volume",
"type": "string",
"section": _("Audio"),
"label": _("Music volume"),
"help": _("Sets the music volume, 0-255 (default: 192)"),
"advanced": True,
@ -284,6 +297,7 @@ class scummvm(Runner):
{
"option": "sfx-volume",
"type": "string",
"section": _("Audio"),
"label": _("SFX volume"),
"help": _("Sets the sfx volume, 0-255 (default: 192)"),
"advanced": True,
@ -291,6 +305,7 @@ class scummvm(Runner):
{
"option": "speech-volume",
"type": "string",
"section": _("Audio"),
"label": _("Speech volume"),
"help": _("Sets the speech volume, 0-255 (default: 192)"),
"advanced": True,
@ -298,12 +313,14 @@ class scummvm(Runner):
{
"option": "midi-gain",
"type": "string",
"section": _("Audio"),
"label": _("MIDI gain"),
"help": _("Sets the gain for MIDI playback. 0-1000 (default: 100)"),
"advanced": True,
},
{
"option": "soundfont",
"section": _("Audio"),
"type": "string",
"label": _("Soundfont"),
"help": _("Specifies the path to a soundfont file."),
@ -311,6 +328,7 @@ class scummvm(Runner):
},
{
"option": "multi-midi",
"section": _("Audio"),
"label": _("Mixed AdLib/MIDI mode"),
"type": "bool",
"default": False,
@ -319,6 +337,7 @@ class scummvm(Runner):
},
{
"option": "native-mt32",
"section": _("Audio"),
"label": _("True Roland MT-32"),
"type": "bool",
"default": False,
@ -328,6 +347,7 @@ class scummvm(Runner):
},
{
"option": "enable-gs",
"section": _("Audio"),
"label": _("Enable Roland GS"),
"type": "bool",
"default": False,
@ -359,6 +379,7 @@ class scummvm(Runner):
{
"option": "debug-level",
"type": "string",
"section": _("Debugging"),
"label": _("Debug level"),
"help": _("Sets debug verbosity level"),
"advanced": True,
@ -366,6 +387,7 @@ class scummvm(Runner):
{
"option": "debug-flags",
"type": "string",
"section": _("Debugging"),
"label": _("Debug flags"),
"help": _("Enables engine specific debug flags"),
"advanced": True,

View file

@ -54,34 +54,38 @@ class vice(Runner):
{
"option": "fullscreen",
"type": "bool",
"section": _("Graphics"),
"label": _("Fullscreen"),
"default": False,
},
{
"option": "double",
"type": "bool",
"section": _("Graphics"),
"label": _("Scale up display by 2"),
"default": True,
},
{
"option": "aspect_ratio",
"type": "bool",
"section": _("Graphics"),
"label": _("Preserve aspect ratio"),
"default": True,
},
{
"option": "renderer",
"type": "choice",
"section": _("Graphics"),
"label": _("Graphics renderer"),
"choices": [("OpenGL", "opengl"), (_("Software"), "software")],
"default": "opengl",
},
{
"option": "drivesound",
"type": "bool",
"label": _("Enable sound emulation of disk drives"),
"default": False,
},
{
"option": "renderer",
"type": "choice",
"label": _("Graphics renderer"),
"choices": [("OpenGL", "opengl"), (_("Software"), "software")],
"default": "opengl",
},
{
"option": "machine",
"type": "choice",

View file

@ -13,10 +13,10 @@
}
],
"runner_options": [
{
"option": "fullscreen",
"type": "bool",
"section": "Graphics",
"label": "Fullscreen",
"default": false,
"argument": "-fullscreen"
@ -24,6 +24,7 @@
{
"option": "bw",
"type": "bool",
"section": "Graphics",
"label": "Black and White",
"default": false,
"argument": "-bw"