Skip to content

Commit

Permalink
Don't warn changing codepage when language file is loaded for the fir…
Browse files Browse the repository at this point in the history
…st time.
  • Loading branch information
maron2000 committed Aug 15, 2024
1 parent bb005b6 commit 64087fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/misc/messages.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ void LoadMessageFile(const char * fname) {
return;
}
std::string msg = "The specified language file uses code page " + std::to_string(c) + ". Do you want to change to this code page accordingly?";
if (!control->opt_langcp && !uselangcp && c != 437 && GetDefaultCP() == 437 && systemmessagebox("DOSBox-X language file", msg.c_str(), "yesno", "question", 1)) control->opt_langcp = true;
if (loadlang && !control->opt_langcp && !uselangcp && c != 437 && GetDefaultCP() == 437 && systemmessagebox("DOSBox-X language file", msg.c_str(), "yesno", "question", 1)) control->opt_langcp = true;
else control->opt_langcp = true;
msgcodepage = c;
dos.loaded_codepage = c;
if (c == 950 && !chinasea) makestdcp950table();
Expand Down

0 comments on commit 64087fd

Please sign in to comment.