mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-19 11:23:16 +08:00
fix menu refresh
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
extern bool dos_kernel_disabled, force_conversion;
|
||||
bool CodePageHostToGuestUTF8(char *d/*CROSS_LEN*/,const char *s/*CROSS_LEN*/), CodePageGuestToHostUTF8(char *d/*CROSS_LEN*/,const char *s/*CROSS_LEN*/);
|
||||
|
||||
#define LINE_IN_MAXLEN 2048
|
||||
@@ -71,7 +72,7 @@ void MSG_Replace(const char * _name, const char* _val) {
|
||||
void InitCodePage() {
|
||||
if (!dos.loaded_codepage) {
|
||||
Section_prop *section = static_cast<Section_prop *>(control->GetSection("config"));
|
||||
if (!dos.loaded_codepage && section!=NULL) {
|
||||
if ((!dos.loaded_codepage || dos_kernel_disabled || force_conversion) && section!=NULL) {
|
||||
char *countrystr = (char *)section->Get_string("country"), *r=strchr(countrystr, ',');
|
||||
if (r!=NULL && *(r+1)) dos.loaded_codepage = atoi(trim(r+1));
|
||||
}
|
||||
|
Reference in New Issue
Block a user