summaryrefslogtreecommitdiff
path: root/src/modules/rkt
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-13 05:36:10 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-13 05:56:52 -0700
commitdaba1bb530850e08e852957494b4e389d7a12d96 (patch)
treef6cb9e5062fe56f637cef4ce80cbd4859811b20d /src/modules/rkt
parent17990782709a52da6cd0aad02edd5cd4e4bc91af (diff)
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)
Diffstat (limited to 'src/modules/rkt')
-rw-r--r--src/modules/rkt/rkt_scener.c8
1 files changed, 8 insertions, 0 deletions
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);
© All Rights Reserved