commit 0e8e10312d7b32b7575cc730b39892c93d85c73b
Author: Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Mon Dec 29 09:31:12 2025 -0700
Commit: Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Mon Dec 29 09:31:12 2025 -0700
better fix for shell pause menu on enter
---
source/p8GlobalLuaFunctions.h | 2 ++
source/vm.cpp | 3 +--
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/source/p8GlobalLuaFunctions.h b/source/p8GlobalLuaFunctions.h
index 4a57d2b..8fc7eba 100644
--- a/source/p8GlobalLuaFunctions.h
+++ b/source/p8GlobalLuaFunctions.h
@@ -666,6 +666,8 @@ function __z8_shell()
-- does not remain in later frames
local on = t() * 5 % 2 > 1
if (on) rectfill(caret * 4 + 8, start_y, caret * 4 + 11, start_y + 4, 8)
+ -- Suppress pause menu if Enter key is pending (will be processed next frame)
+ if stat(30) then poke(0x5f30, 1) end
flip()
if (on) rectfill(caret * 4 + 8, start_y, caret * 4 + 11, start_y + 4, 0)
end
diff --git a/source/vm.cpp b/source/vm.cpp
index e5ee1dd..a125c43 100644
--- a/source/vm.cpp
+++ b/source/vm.cpp
@@ -1111,8 +1111,7 @@ void Vm::update_buttons() {
}
// Check for pause button (bit 6 / 0x40)
- // Don't trigger pause in devkitMode - Enter key is used for command input
- if (_input->btnp(6) && !_memory->drawState.devkitMode) {
+ if (_input->btnp(6)) {
togglePauseMenu();
}
}