This commit is contained in:
love-code-yeyixiao 2024-06-29 20:14:16 +08:00
parent a59b1a65f5
commit 4694ebf105
1 changed files with 6 additions and 6 deletions

View File

@ -258,20 +258,20 @@ _FX BOOLEAN Kernel_Init()
} }
if (SbieApi_QueryConfBool(NULL, L"UseSpoofLocale", FALSE)) if (SbieApi_QueryConfBool(NULL, L"UseSpoofLocale", FALSE))
{ {
SBIEDLL_HOOK(Kernel_, GetUserDefaultUILanguage); /*SBIEDLL_HOOK(Kernel_, GetUserDefaultUILanguage);
P_GetUserDefaultLocaleName GetUserDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetUserDefaultLocaleName", "GetUserDefaultLocaleName"); P_GetUserDefaultLocaleName GetUserDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetUserDefaultLocaleName", "GetUserDefaultLocaleName");
if (GetUserDefaultLocaleName) if (GetUserDefaultLocaleName)
SBIEDLL_HOOK(Kernel_, GetUserDefaultLocaleName); SBIEDLL_HOOK(Kernel_, GetUserDefaultLocaleName);*/
SBIEDLL_HOOK(Kernel_, GetUserDefaultLCID); SBIEDLL_HOOK(Kernel_, GetUserDefaultLCID);
SBIEDLL_HOOK(Kernel_, GetUserDefaultLangID); SBIEDLL_HOOK(Kernel_, GetUserDefaultLangID);
SBIEDLL_HOOK(Kernel_, GetUserDefaultGeoName); /*SBIEDLL_HOOK(Kernel_, GetUserDefaultGeoName);
/*SBIEDLL_HOOK(Kernel_, GetSystemDefaultUILanguage); SBIEDLL_HOOK(Kernel_, GetSystemDefaultUILanguage);
P_GetSystemDefaultLocaleName GetSystemDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetSystemDefaultLocaleName", "GetSystemDefaultLocaleName"); P_GetSystemDefaultLocaleName GetSystemDefaultLocaleName = Ldr_GetProcAddrNew(Dll_Kernel32, L"GetSystemDefaultLocaleName", "GetSystemDefaultLocaleName");
if (GetSystemDefaultLocaleName) if (GetSystemDefaultLocaleName)
SBIEDLL_HOOK(Kernel_, GetSystemDefaultLocaleName); SBIEDLL_HOOK(Kernel_, GetSystemDefaultLocaleName);
SBIEDLL_HOOK(Kernel_, GetSystemDefaultLCID); SBIEDLL_HOOK(Kernel_, GetSystemDefaultLCID);
SBIEDLL_HOOK(Kernel_, GetSystemDefaultLangID); SBIEDLL_HOOK(Kernel_, GetSystemDefaultLangID);*/
*/
/*SBIEDLL_HOOK(Kernel_, GetLocaleInfoA); /*SBIEDLL_HOOK(Kernel_, GetLocaleInfoA);
SBIEDLL_HOOK(Kernel_, GetLocaleInfoW); SBIEDLL_HOOK(Kernel_, GetLocaleInfoW);