From 85f74eb4bfd0978160b41a4d189dbd8c9b7d9390 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev <0x416b617269@gmail.com> Date: Sat, 4 May 2024 12:47:48 +0200 Subject: [PATCH] global: add TAISEI_KIOSK_PREVENT_QUIT env var Defaults to 1. Set to 0 to be able to close the window in kiosk mode. This is intended for testing and not recommended for deployment. --- src/global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.c b/src/global.c index cde78520..c344ba57 100644 --- a/src/global.c +++ b/src/global.c @@ -50,7 +50,7 @@ bool gamekeypressed(KeyIndex key) { static SDL_atomic_t quitting; void taisei_quit(void) { - if(global.is_kiosk_mode) { + if(global.is_kiosk_mode && env_get("TAISEI_KIOSK_PREVENT_QUIT", true)) { log_info("Running in kiosk mode; exit request ignored"); return; }