From cf8bd0f078aa49a2f8826d592fa593960e014e9f Mon Sep 17 00:00:00 2001 From: nanshiki Date: Thu, 27 Jul 2023 00:15:29 +0900 Subject: [PATCH] Fixed keyboardlayout=jp to be Japanese keyboard layout. --- src/dos/dos_keyboard_layout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dos/dos_keyboard_layout.cpp b/src/dos/dos_keyboard_layout.cpp index 43b8f296e69..513ae7cd8c8 100644 --- a/src/dos/dos_keyboard_layout.cpp +++ b/src/dos/dos_keyboard_layout.cpp @@ -1712,7 +1712,7 @@ class DOS_KeyboardLayout: public Module_base { } } if (tocp && !IS_PC98_ARCH) { - if(dos.loaded_codepage == 932 && !strcmp(layoutname, "jp106")) loaded_layout->read_keyboard_file(layoutname, dos.loaded_codepage); + if((dos.loaded_codepage == 932 || tocp == 932) && (!strcmp(layoutname, "jp106") || !strcmp(layoutname, "jp"))) loaded_layout->read_keyboard_file(layoutname, 932); uint16_t cpbak = dos.loaded_codepage; #if defined(USE_TTF)