mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Add scummvm options: aspect correction and subtitles
This commit is contained in:
parent
6d87bec133
commit
cc22a5cc5c
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -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!)
|
||||
|
|
|
@ -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"])
|
||||
|
|
Loading…
Reference in a new issue