diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-05-20 20:30:36 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-05-20 20:30:36 +0100 |
commit | c7ecffbad48955296c5953f991c29cbe6e6799f8 (patch) | |
tree | 4a816cdbc52c6785f0849a53140e85dff87dcb33 | |
parent | cf56f40f511d134e18eccd001471f5eafae518d2 (diff) | |
download | tr8vm-c7ecffbad48955296c5953f991c29cbe6e6799f8.tar.gz tr8vm-c7ecffbad48955296c5953f991c29cbe6e6799f8.zip |
F9 to dump VM state to stderr
-rw-r--r-- | tr8vm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); } |