mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-24 00:03:11 +01:00
Change to GetLocaleInfo
This commit is contained in:
@@ -597,7 +597,7 @@ PCHAR *CommandLineToArgvA(PCHAR CmdLine, int *_argc)
|
|||||||
uint16 platform_get_locale_language(){
|
uint16 platform_get_locale_language(){
|
||||||
WCHAR langCode[4];
|
WCHAR langCode[4];
|
||||||
|
|
||||||
if (GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT,
|
if (GetLocaleInfo(LOCALE_USER_DEFAULT,
|
||||||
LOCALE_SABBREVLANGNAME,
|
LOCALE_SABBREVLANGNAME,
|
||||||
langCode,
|
langCode,
|
||||||
sizeof(langCode) / sizeof(WCHAR)) == 0){
|
sizeof(langCode) / sizeof(WCHAR)) == 0){
|
||||||
@@ -637,7 +637,7 @@ uint16 platform_get_locale_language(){
|
|||||||
uint8 platform_get_locale_currency(){
|
uint8 platform_get_locale_currency(){
|
||||||
WCHAR currCode[4];
|
WCHAR currCode[4];
|
||||||
|
|
||||||
if (GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT,
|
if (GetLocaleInfo(LOCALE_USER_DEFAULT,
|
||||||
LOCALE_SINTLSYMBOL,
|
LOCALE_SINTLSYMBOL,
|
||||||
currCode,
|
currCode,
|
||||||
sizeof(currCode) / sizeof(WCHAR)) == 0){
|
sizeof(currCode) / sizeof(WCHAR)) == 0){
|
||||||
@@ -678,7 +678,7 @@ uint8 platform_get_locale_currency(){
|
|||||||
|
|
||||||
uint8 platform_get_locale_measurement_format(){
|
uint8 platform_get_locale_measurement_format(){
|
||||||
UINT measurement_system;
|
UINT measurement_system;
|
||||||
if (GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT,
|
if (GetLocaleInfo(LOCALE_USER_DEFAULT,
|
||||||
LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
|
LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
|
||||||
(LPWSTR)&measurement_system,
|
(LPWSTR)&measurement_system,
|
||||||
sizeof(measurement_system)) == 0){
|
sizeof(measurement_system)) == 0){
|
||||||
@@ -698,7 +698,7 @@ uint8 platform_get_locale_temperature_format(){
|
|||||||
// There does not seem to be a function to obtain this, just check the countries
|
// There does not seem to be a function to obtain this, just check the countries
|
||||||
// According
|
// According
|
||||||
UINT country;
|
UINT country;
|
||||||
if (GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT,
|
if (GetLocaleInfo(LOCALE_USER_DEFAULT,
|
||||||
LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
|
LOCALE_IMEASURE | LOCALE_RETURN_NUMBER,
|
||||||
(LPWSTR)&country,
|
(LPWSTR)&country,
|
||||||
sizeof(country)) == 0){
|
sizeof(country)) == 0){
|
||||||
@@ -715,4 +715,4 @@ uint8 platform_get_locale_temperature_format(){
|
|||||||
return TEMPERATURE_FORMAT_C;
|
return TEMPERATURE_FORMAT_C;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user