Coverage for lutris.runners.linux : 63%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding:Utf-8 -*-
# pylint: disable=C0103 """Runs native games""" { "option": "exe", "type": "file", "default_path": "game_path", "label": "Executable" }, { "option": "args", "type": "string", "label": "Arguments" }, { "option": "ld_preload", "type": "file", "label": "Preload library" }, { "option": "ld_library_path", "type": "directory_chooser", "label": "Add directory to LD_LIBRARY_PATH" } ]
"""Well of course Linux is installed, you're using Linux right ?"""
return os.path.dirname(self.config['game']['exe'])
""" Run native game. """ if not game_config:
return {'error': 'FILE_NOT_FOUND', 'file': executable}
self.game_path = self.get_game_path()
ld_preload = game_config.get('ld_preload') if ld_preload:
ld_library_path = game_config.get('ld_library_path') launch_info['ld_library_path'] = ld_library_path
command = [] command.append("./%s" % os.path.basename(executable))
args = game_config.get('args', "") for arg in args.split(): command.append(arg) launch_info['command'] = command return launch_info |