mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Update description of fake-api GetUserLangID
This commit is contained in:
parent
404369cd9f
commit
f09feca484
2 changed files with 2 additions and 2 deletions
|
@ -117,7 +117,7 @@ mkxp-z provides limited support for some WinAPI functions that would normally br
|
|||
* `SetCapture`: No-op. Always returns `571`.
|
||||
* `ReleaseCapture`: No-op.
|
||||
* `GetPrivateProfileString`: Emulated with MKXP's ini code.
|
||||
* `GetUserDefaultLangId`: Always returns English (`0xc09`).
|
||||
* `GetUserDefaultLangId`: Checks for JP, EN, FR, IT, DE, ES, KO, PT and ZH. Returns English (`0x09`) if the locale can't be determined. Doesn't handle sublanguages. Use `MKXP.user_language` instead.
|
||||
|
||||
## What doesn't work (yet)
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ const char *getUserLanguage()
|
|||
static char buf[50] = {0};
|
||||
#if defined(__WIN32__)
|
||||
wchar_t wbuf[50] = {0};
|
||||
LANGID lid = GetUserDefaultLangId();
|
||||
LANGID lid = GetUserDefaultLangID();
|
||||
LCIDToLocaleName(lid, wbuf, sizeof(wbuf), 0);
|
||||
wcstombs(buf, wbuf, sizeof(buf));
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue