From 6b0654291bd74bf5b7830212b55ea39b4cc75c34 Mon Sep 17 00:00:00 2001 From: Max le Fou Date: Wed, 27 Dec 2017 22:40:46 +0100 Subject: [PATCH] Added resolution support --- lutris/runners/jzintv.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/lutris/runners/jzintv.py b/lutris/runners/jzintv.py index 6d188a106..6d94c8808 100644 --- a/lutris/runners/jzintv.py +++ b/lutris/runners/jzintv.py @@ -30,12 +30,39 @@ class jzintv(Runner): "option": "fullscreen", "type": "bool", "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): """Run Intellivision game""" 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"): arguments = arguments + ["-f"] bios_path = self.runner_config.get("bios_path", '')