From c7ecffbad48955296c5953f991c29cbe6e6799f8 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 20 May 2023 20:30:36 +0100 Subject: F9 to dump VM state to stderr --- tr8vm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tr8vm.c') 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); } -- cgit v1.2.3