Add ags runner

This commit is contained in:
Mathieu Comandon 2016-09-22 13:36:23 -07:00
parent d7ced63076
commit 872853e359
3 changed files with 38 additions and 1 deletions

View file

@ -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
View 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}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB