Add scummvm options: aspect correction and subtitles

This commit is contained in:
Xodetaetl 2014-09-19 16:23:19 +02:00
parent 6d87bec133
commit cc22a5cc5c
2 changed files with 26 additions and 2 deletions

4
debian/changelog vendored
View file

@ -1,3 +1,7 @@
* Added ScummVM options: aspect correction, subtitles
* Fixed Wine games install failing when there is a space in the setup file path
lutris (0.3.5) trusty; urgency=medium
* All runners now use the version hosted on lutris.net (auto-install!)

View file

@ -21,6 +21,11 @@ class scummvm(Runner):
'option': 'path',
'type': 'directory_chooser',
'label': "Path for the game"
},
{
"option": "subtitles",
"label": "Enable subtitles (if the game has voice)",
"type": "bool"
}
]
@ -44,6 +49,11 @@ class scummvm(Runner):
"label": "Windowed",
"type": "bool"
},
{
"option": "aspect",
"label": "Aspect ratio correction",
"type": "bool"
},
{
"option": "gfx-mode",
"label": "Graphics scaler",
@ -73,13 +83,23 @@ class scummvm(Runner):
"--extrapath=\"%s\"" % self.get_scummvm_data_dir(),
"--themepath=\"%s\"" % self.get_scummvm_data_dir(),
]
# Options
if self.runner_config.get("aspect"):
command.append("--aspect-ratio")
if self.settings['game'].get("subtitles"):
command.append("--subtitles")
if self.runner_config.get("windowed"):
command.append("--no-fullscreen")
else:
command.append("--fullscreen")
mode = self.runner_config.get("gfx-mode") or "normal"
command.append("--gfx-mode=%s" % mode)
mode = self.runner_config.get("gfx-mode")
if mode:
command.append("--gfx-mode=%s" % mode)
# /Options
command.append("--path=\"%s\"" % self.game_path)
command.append(self.settings["game"]["game_id"])