mirror of
https://github.com/lutris/lutris
synced 2024-11-02 07:10:17 +00:00
Added resolution support
This commit is contained in:
parent
bb3bc1226c
commit
6b0654291b
1 changed files with 27 additions and 0 deletions
|
@ -30,12 +30,39 @@ class jzintv(Runner):
|
||||||
"option": "fullscreen",
|
"option": "fullscreen",
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
"label": "Fullscreen"
|
"label": "Fullscreen"
|
||||||
|
},
|
||||||
|
# Adds the resoluton menu chooser
|
||||||
|
# jzintv has some resolution presets with the command -z
|
||||||
|
# going from -z0 to -z7. Some details on those presets
|
||||||
|
# are unknown and just speculated
|
||||||
|
{
|
||||||
|
"option": "resolution",
|
||||||
|
"type": "choice",
|
||||||
|
"label": "Resolution",
|
||||||
|
"choices": (
|
||||||
|
("320 x 200 (default)", "0"),
|
||||||
|
("640 x 480", "1"),
|
||||||
|
("800 x 600", "2"),
|
||||||
|
("1024 x 768", "3"),
|
||||||
|
("1152 x 864 ?", "4"),
|
||||||
|
("1280 x 1024 ?", "5"),
|
||||||
|
("1600 x 1200 ?", "6"),
|
||||||
|
("1920 x 1080 ?", "7"),
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
############################################################
|
||||||
]
|
]
|
||||||
|
|
||||||
def play(self):
|
def play(self):
|
||||||
"""Run Intellivision game"""
|
"""Run Intellivision game"""
|
||||||
arguments = [self.get_executable()]
|
arguments = [self.get_executable()]
|
||||||
|
|
||||||
|
# Treatment of the choosen resolution
|
||||||
|
selected_resolution = self.runner_config.get("resolution")
|
||||||
|
if selected_resolution:
|
||||||
|
arguments = arguments + ["-z%s" % selected_resolution]
|
||||||
|
#####################################
|
||||||
|
|
||||||
if self.runner_config.get("fullscreen"):
|
if self.runner_config.get("fullscreen"):
|
||||||
arguments = arguments + ["-f"]
|
arguments = arguments + ["-f"]
|
||||||
bios_path = self.runner_config.get("bios_path", '')
|
bios_path = self.runner_config.get("bios_path", '')
|
||||||
|
|
Loading…
Reference in a new issue