Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds internationalization support to Int 21h:6523 ("[Y]es/[N]o chars" patch) #4478

Merged
merged 2 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/dos/dos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2744,9 +2744,9 @@ static Bitu DOS_21Handler(void) {
else
c = reg_dl; // SBCS

if (tolower(c) == 'y')
if (tolower(c) == MSG_Get("INT21_6523_YESNO_CHARS")[0])
reg_ax = 1;/*yes*/
else if (tolower(c) == 'n')
else if (tolower(c) == MSG_Get("INT21_6523_YESNO_CHARS")[1])
reg_ax = 0;/*no*/
else
reg_ax = 2;/*neither*/
Expand Down
1 change: 1 addition & 0 deletions src/dos/dos_programs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9438,6 +9438,7 @@ void DOS_SetupPrograms(void) {
MSG_Add("PROGRAM_KEYB_INVALIDFILE","Keyboard file %s invalid\n");
MSG_Add("PROGRAM_KEYB_LAYOUTNOTFOUND","No layout in %s for codepage %i\n");
MSG_Add("PROGRAM_KEYB_INVCPFILE","None or invalid codepage file for layout %s\n\n");
MSG_Add("INT21_6523_YESNO_CHARS", "yn");
MSG_Add("PROGRAM_MODE_USAGE","Configures system devices.\n\n"
"\033[34;1mMODE\033[0m display-type :display-type codes are "
"\033[1mCO80\033[0m, \033[1mBW80\033[0m, \033[1mCO40\033[0m, \033[1mBW40\033[0m, or \033[1mMONO\033[0m\n"
Expand Down