Add EnumSystemLocalesA stub (#63)

This commit is contained in:
Mark Street 2023-11-26 20:04:27 +00:00 committed by GitHub
parent c6fa592a31
commit ae5b4fffaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1928,6 +1928,14 @@ namespace kernel32 {
}
}
int WIN_FUNC EnumSystemLocalesA(void (*callback)(char *lpLocaleString), int dwFlags) {
DEBUG_LOG("EnumSystemLocalesA %p %i\n", callback, dwFlags);
// e.g. something like:
// callback("en_US");
// callback("ja_JP");
return 1;
}
int WIN_FUNC GetUserDefaultLCID() {
DEBUG_LOG("GetUserDefaultLCID\n");
return 1;
@ -2173,6 +2181,7 @@ static void *resolveByName(const char *name) {
if (strcmp(name, "LCMapStringA") == 0) return (void *) kernel32::LCMapStringA;
if (strcmp(name, "GetLocaleInfoA") == 0) return (void *) kernel32::GetLocaleInfoA;
if (strcmp(name, "GetLocaleInfoW") == 0) return (void *) kernel32::GetLocaleInfoW;
if (strcmp(name, "EnumSystemLocalesA") == 0) return (void *) kernel32::EnumSystemLocalesA;
if (strcmp(name, "GetUserDefaultLCID") == 0) return (void *) kernel32::GetUserDefaultLCID;
if (strcmp(name, "IsDBCSLeadByte") == 0) return (void *) kernel32::IsDBCSLeadByte;