From bfa3da0d0e26e3f56233eb6beea834b4133ceb35 Mon Sep 17 00:00:00 2001 From: Mark Street Date: Sun, 26 Nov 2023 17:22:25 +0000 Subject: [PATCH] Add EnumSystemLocalesA stub --- dll/kernel32.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dll/kernel32.cpp b/dll/kernel32.cpp index 7eb9cde..c7a4c6c 100644 --- a/dll/kernel32.cpp +++ b/dll/kernel32.cpp @@ -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;