aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-20 20:30:36 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-20 20:30:36 +0100
commitc7ecffbad48955296c5953f991c29cbe6e6799f8 (patch)
tree4a816cdbc52c6785f0849a53140e85dff87dcb33
parentcf56f40f511d134e18eccd001471f5eafae518d2 (diff)
downloadtr8vm-c7ecffbad48955296c5953f991c29cbe6e6799f8.tar.gz
tr8vm-c7ecffbad48955296c5953f991c29cbe6e6799f8.zip
F9 to dump VM state to stderr
-rw-r--r--tr8vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tr8vm.c b/tr8vm.c
index e75ba9f..32c81b5 100644
--- a/tr8vm.c
+++ b/tr8vm.c
@@ -374,6 +374,9 @@ int main(int argc, char *argv[])
fullscreen ^= 1;
resize_full_screen(screen, renderer, fullscreen, &dst);
}
+ /* dump vm state to stderr */
+ if (ev.key.keysym.sym == SDLK_F9)
+ tr8_dump(&vm, stderr);
update_ctl(&ev);
}