diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-12 19:46:15 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-12-12 19:46:15 +0100 |
commit | 297d621987c224db26eadfb9bde9235741387496 (patch) | |
tree | 9b21b5900ce8982f10c52e7312dbf3c471afdb73 /src/example | |
parent | 80a80f385874ea109b54454b58e84037aa6092cc (diff) |
more cleanup + script utilities
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/replay.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/example/replay.cpp b/src/example/replay.cpp index 4c606d7..7faf6cb 100644 --- a/src/example/replay.cpp +++ b/src/example/replay.cpp @@ -27,17 +27,21 @@ class Timeline : public Script { switch (i++) { default: break; case 10: + logf("record start"); replay.record_start(); break; case 60: + logf("record end, playing recording"); this->recording = replay.record_end(); replay.play(this->recording); break; case 61: + logf("done, releasing recording"); replay.release(this->recording); break; case 72: - throw; + logf("exit"); + queue_event<ShutDownEvent>(); break; }; } |