From daba1bb530850e08e852957494b4e389d7a12d96 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 13 Jul 2023 05:36:10 -0700 Subject: modules/rkt: include EXITED [99999] in scenes list While there's no actual context for 99999, it's a state we need to represent visibly somehow.. so just make it appear like an epilogue scene off the end. I've included the Rocket/Scener/Pinned status columns consistently as well so you at least still get a visible indication when you've done something like pinned 99999 somehow (not that this is possible presently, but with future changes there will be more ways to copy the Rocket idx into Scener's idx) --- src/modules/rkt/rkt_scener.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/modules/rkt/rkt_scener.c') diff --git a/src/modules/rkt/rkt_scener.c b/src/modules/rkt/rkt_scener.c index f733929..1a7bc1a 100644 --- a/src/modules/rkt/rkt_scener.c +++ b/src/modules/rkt/rkt_scener.c @@ -887,6 +887,14 @@ int rkt_scener_update(rkt_context_t *ctxt) return rkt_scener_err_close(scener, ENOMEM); } + if (til_str_appendf(output, + " ...\n %c%c%cEXITED [%u]\n", + ctxt_scene == RKT_EXIT_SCENE_IDX ? '*' : ' ', + scener->scene == RKT_EXIT_SCENE_IDX ? '*' : ' ', + (scener->scene == RKT_EXIT_SCENE_IDX && scener->pin_scene) ? '!' : ' ', + RKT_EXIT_SCENE_IDX) < 0) + return rkt_scener_err_close(scener, ENOMEM); + if (til_str_appendf(output, "\n") < 0) return rkt_scener_err_close(scener, ENOMEM); -- cgit v1.2.1