mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
5641e06a19
## Link to GitHub Issue, if one exists user-reported ## Description of change When the system non-Unicode language is not set to Japanese, TDJ subscreen katakana keyboard was broken (weird behavior with characters not erasing, ending with corrupt characters, etc) To fix this, add a hook for `IsDBCSLeadByte`. `IsDBCSLeadByte` assumes system ACP (which may not be SHIFT_JIS). Instead, redirect bm2dx.dll to use `IsDBCSLeadByteEx` instead with SHIFT_JIS explicitly specified as a parameter. Presumably the game was using IsDBCSLeadByte to manage the keyboard typing logic.... which is weird because SDVX doesn't do the same. ## Testing Tested iidx 31 and tried to do searches.