add args
This commit is contained in:
parent
75df076d23
commit
9d4ccd92ad
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue