mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
update translations
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -212,7 +212,8 @@ template <class MT> bool String_SBCS_TO_HOST_UTF8(char *d/*CROSS_LEN*/,const cha
|
||||
if (ic >= map_max) return false; // non-representable
|
||||
MT wc = map[ic]; // output: unicode character
|
||||
|
||||
if (utf8_encode(&d,df,(uint32_t)wc) < 0) // will advance d by however many UTF-8 bytes are needed
|
||||
if (morelen&&ic==10&&wc==0x25D9) *d++ = ic;
|
||||
else if (utf8_encode(&d,df,(uint32_t)wc) < 0) // will advance d by however many UTF-8 bytes are needed
|
||||
return false; // non-representable, or probably just out of room
|
||||
}
|
||||
|
||||
|
@@ -2817,7 +2817,8 @@ public:
|
||||
handler=_handler;
|
||||
defmod=_mod;
|
||||
defkey=_key;
|
||||
buttonname=_buttonname;
|
||||
if (strlen(_buttonname)<100) strcpy(buttonname, _buttonname);
|
||||
else {strncpy(buttonname, _buttonname, 99);buttonname[99]=0;}
|
||||
handlergroup.push_back(this);
|
||||
type = handler_event_t;
|
||||
}
|
||||
@@ -2847,7 +2848,8 @@ public:
|
||||
}
|
||||
|
||||
void SetButtonName(const char *name) {
|
||||
buttonname = name;
|
||||
if (strlen(name)<100) strcpy(buttonname, name);
|
||||
else {strncpy(buttonname, name, 99);buttonname[99]=0;}
|
||||
}
|
||||
|
||||
//! \brief Generate a default binding from the MapKeys enumeration
|
||||
@@ -3325,7 +3327,7 @@ protected:
|
||||
Bitu defmod;
|
||||
public:
|
||||
//! \brief Button name
|
||||
const char * buttonname;
|
||||
char buttonname[100];
|
||||
};
|
||||
|
||||
/* whether to run keystrokes through system but only to show how it comes out.
|
||||
|
Reference in New Issue
Block a user