From 214e613f51617cdfdc9376433559200b76ec614f Mon Sep 17 00:00:00 2001 From: William Emfinger Date: Sun, 22 Nov 2026 21:23:25 -0700 Subject: [PATCH] Jedi Knight: every engine global is reset at each launch, as on desktop esp-cpp/OpenJKDF2 esp32/session-globals-reset. tab5-emu runs the engine more than once per boot, but unlike desktop's launcher it never reset the engine's globals between launches. So state from the last session carried over: the handler table and the console counts were found and fixed by hand in #39, and a quit before any level, after a session that had played one, freed a HUD buffer twice. The engine now resets all of its generated globals at the start of each launch. Two small leaks that would otherwise have become permanent are fixed at the source. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY --- components/jk/OpenJKDF2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/jk/OpenJKDF2 b/components/jk/OpenJKDF2 index e159855..ea0c9c1 160000 --- a/components/jk/OpenJKDF2 +++ b/components/jk/OpenJKDF2 @@ -1 +1 @@ -Subproject commit e1598554503991d483113b1c41f9baf6fcf2f0d2 +Subproject commit ea0c9c18c96edceb626bbc2f21e7b4917780ac57