From da05e89b1c7f7ef2886a8a3e18caaefffe7a89a9 Mon Sep 17 00:00:00 2001 From: Lephe Date: Tue, 4 Jun 2024 17:58:16 +0200 Subject: [PATCH] gint: disable restart on fx-CP There is no return-to-menu so enabling it would just loop. --- src/kernel/start.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kernel/start.c b/src/kernel/start.c index 7c8cdf1..26e4257 100644 --- a/src/kernel/start.c +++ b/src/kernel/start.c @@ -42,7 +42,8 @@ int8_t gint_restart = 0; /* gint_setrestart(): Set whether to restart the add-in after exiting */ void gint_setrestart(int restart) { - gint_restart = !!restart; + /* There is now return-to-menu so no restart on CP */ + gint_restart = restart && !GINT_OS_CP; } /* Return value of main() */