summaryrefslogtreecommitdiff
path: root/src/modules/rkt/rkt.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-16 13:56:06 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-16 13:57:55 -0700
commit4b4216de1a5dc59aba06d0defe1a0b9394790c70 (patch)
tree6e4161d176d83a91a1e0c8342504fe365ff981c7 /src/modules/rkt/rkt.c
parent1239467bc6c19eca1beaf7aefa1ac499e5ef4c1c (diff)
modules/rkt: track last scene in ctxt->last_scene
Prepartory commit for pausing playback upon entering 99999 scene It needs to trigger only on the edge of entering the scene to permit RocketEditor to unpause playback even if still in scene 99999, if that's what the user is trying to do. It'd be annoying to have it just keep asserting a paused state until the scene idx leaves 99999... But this also enables triggering anything on scene change edges, for future stuff.
Diffstat (limited to 'src/modules/rkt/rkt.c')
-rw-r--r--src/modules/rkt/rkt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/rkt/rkt.c b/src/modules/rkt/rkt.c
index 9bc154b..71a00e7 100644
--- a/src/modules/rkt/rkt.c
+++ b/src/modules/rkt/rkt.c
@@ -353,6 +353,8 @@ static void rkt_render_fragment(til_module_context_t *context, til_stream_t *str
txt_free(msg);
}
+
+ ctxt->last_scene = scene;
}
}
© All Rights Reserved