Repository navigation
Jedi Knight: keys work at the menus after a quit and relaunch; console commands too - #39
Merged
Merged
Conversation
esp-cpp/OpenJKDF2 esp32/second-session-keys. After JK was quit and launched again in the same boot, its message handler table still held the first session's entries while the count started from zero. Keys and taps were ignored at every menu (the first tally waited forever for Enter) and Esc no longer opened JK's in-game menu. From the third session, console commands and cheats were refused too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY
finger563
added a commit
that referenced
this pull request
Nov 23, 2026
…op (#40) 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. Claude-Session: https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Engine side: esp-cpp/OpenJKDF2#4. This PR bumps
components/jk/OpenJKDF2to that branch (e1598554).Summary
Testing (Tab5)
Four JK sessions in one boot. Each one starts level 1, ends it for real (cutscene, tally, Enter) and reaches level 2, then quits.
The fix was reviewed adversarially, and no defects were found.
🤖 Generated with Claude Code
https://claude.ai/code/session_01SFCMzomCZ5wRHJN4sxwkvY