aboutsummaryrefslogtreecommitdiffstats
path: root/gbctl
diff options
context:
space:
mode:
Diffstat (limited to 'gbctl')
-rwxr-xr-xgbctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbctl b/gbctl
index 287b16a..b926461 100755
--- a/gbctl
+++ b/gbctl
@@ -200,7 +200,7 @@ def cmd_spawn(argv):
if "TMUX" not in os.environ:
die("not inside tmux; gbctl spawn needs a tmux session")
- cmd = [BIN, rom, "--sock", sock_path] + emu_args
+ cmd = [BIN, "--sock", sock_path] + emu_args + [rom] # ROM is the final arg
# exec via a shell wrapper so the pane stays around & shows a title
shell_cmd = "printf '\\033]2;gbc %s\\007'; exec %s" % (
os.path.basename(rom), " ".join(_shquote(c) for c in cmd))