From 64087fdd94f41a3d8c7802d6ed2bd64e04178845 Mon Sep 17 00:00:00 2001 From: maron2000 <68574602+maron2000@users.noreply.github.com> Date: Fri, 16 Aug 2024 00:14:52 +0900 Subject: [PATCH] Don't warn changing codepage when language file is loaded for the first time. --- src/misc/messages.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/misc/messages.cpp b/src/misc/messages.cpp index 70fb8c7a10..d7f1f46524 100644 --- a/src/misc/messages.cpp +++ b/src/misc/messages.cpp @@ -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();