Description
The key input processing fix based on engine version fails with The Sacred Tears: TRUE
The pull request #2143 contains the breaking fix designed to amend #2140.
Last working version: https://easyrpg.org/play/pr2137/?game=tstt
First failing version: https://easyrpg.org/play/pr2143/?game=tstt
Shift key and arrows don't work on the custom menu, only decision key and cancel key work.
Note: this has been tested on Emscripten only, RPG_RT.exe detection might differ.
Engine detection details:
Debug: Using RPG2k Interpreter
Debug: Could not get the size of RPG_RT.exe
Debug: Assuming older engine
Debug: RPG2k < v1.50 / RPG2k3 < v1.05 detected
Debug: Engine configured as: 2k=1 2k3=0 MajorUpdated=0 Eng=0
The detection seems wrong because this game uses shift key and 2k < 1.50 didn't support it.
A possible better heuristic should detect chunk size differences (if possible) before running key input processing.
Despite of mixed versioned games such .flow and other cases for menus, chunk size here should be reliable when checking RPG_RT.exe is not possible, or improve the Emscripten port to properly fetch the RPG_RT.exe size.