From 5e041ef3f8150255d98c38872af29518f89be403 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 15 Sep 2023 13:53:46 +0900 Subject: [PATCH] [qwaq] Remove the shutdown builtin It proved to be a bad idea with the error handler stack. --- ruamoko/qwaq/builtins/graphics.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ruamoko/qwaq/builtins/graphics.c b/ruamoko/qwaq/builtins/graphics.c index 7b4479688..acd127716 100644 --- a/ruamoko/qwaq/builtins/graphics.c +++ b/ruamoko/qwaq/builtins/graphics.c @@ -139,12 +139,6 @@ bi_setpalette (progs_t *pr, void *_res) VID_SetPalette (palette, colormap); } -static void -bi_shutdown (progs_t *pr, void *_res) -{ - Sys_Shutdown (); -} - #define bi(x,n,np,params...) {#x, bi_##x, n, np, {params}} #define p(type) PR_PARAM(type) static builtin_t builtins[] = { @@ -152,7 +146,6 @@ static builtin_t builtins[] = { bi(refresh, -1, 0), bi(refresh_2d, -1, 1, p(func)), bi(setpalette, -1, 2, p(ptr), p(ptr)), - bi(shutdown, -1, 0), {0} }; @@ -170,6 +163,7 @@ event_handler (const IE_event_t *ie_event, void *_pr) static void BI_shutdown (void *data) { + printf ("BI_shutdown\n"); ECS_DelRegistry (canvas_sys.reg); ColorCache_Shutdown (); }