mirror of
https://github.com/lutris/lutris
synced 2024-10-14 19:53:53 +00:00
Add ags runner
This commit is contained in:
parent
d7ced63076
commit
872853e359
|
@ -7,7 +7,7 @@ __all__ = (
|
|||
# Microsoft based
|
||||
"wine", "winesteam", "dosbox",
|
||||
# Multi-system
|
||||
"mame", "mess", "mednafen", "scummvm", "residualvm", "libretro",
|
||||
"mame", "mess", "mednafen", "scummvm", "residualvm", "libretro", "ags",
|
||||
# Commdore
|
||||
"fsuae", "vice",
|
||||
# Atari
|
||||
|
|
37
lutris/runners/ags.py
Normal file
37
lutris/runners/ags.py
Normal file
|
@ -0,0 +1,37 @@
|
|||
import os
|
||||
|
||||
from lutris import settings
|
||||
from lutris.runners.runner import Runner
|
||||
|
||||
|
||||
class ags(Runner):
|
||||
human_name = "Adventure Game Studio"
|
||||
description = "Graphics adventure engine"
|
||||
platform = 'Linux'
|
||||
game_options = [{
|
||||
'option': 'main_file',
|
||||
'type': 'file',
|
||||
'label': 'blopblup '
|
||||
}]
|
||||
runner_options = [
|
||||
{
|
||||
'option': 'fullscreen',
|
||||
'type': 'bool',
|
||||
'label': 'Fullscreen',
|
||||
'default': True
|
||||
}
|
||||
]
|
||||
|
||||
def get_executable(self):
|
||||
return os.path.join(settings.RUNNER_DIR, 'ags/ags.sh')
|
||||
|
||||
def play(self):
|
||||
"""Run the game."""
|
||||
arguments = [self.get_executable()]
|
||||
if self.runner_config.get('fullscreen', True):
|
||||
arguments.append('-f')
|
||||
main_file = self.game_config.get('main_file') or ''
|
||||
if not os.path.exists(main_file):
|
||||
return {'error': 'FILE_NOT_FOUND', 'file': main_file}
|
||||
arguments.append(main_file)
|
||||
return {"command": arguments}
|
BIN
share/lutris/media/runner_icons/ags.png
Normal file
BIN
share/lutris/media/runner_icons/ags.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in a new issue