This commit is contained in:
Fusselkater 2022-11-27 21:27:49 +01:00
parent 75df076d23
commit 9d4ccd92ad

View file

@ -109,7 +109,8 @@ def parser_run(args):
# Run executable
os.chdir(config['games'][args.game_id]['path'])
os.chmod(config['games'][args.game_id]['executable'], 755)
subprocess.run(config['games'][args.game_id]['executable'])
game_args = config['games'][args.game_id]['args'] if 'args' in config['games'][args.game_id] else []
subprocess.run([config['games'][args.game_id]['executable'], *game_args])
def parser_list(args):
global config