mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-20 17:20:58 -05:00
config: use enum classes
This commit is contained in:
@@ -78,7 +78,7 @@ void XGetVideoMode()
|
||||
uint32_t XGetGameRegion()
|
||||
{
|
||||
// printf("!!! STUB !!! XGetGameRegion\n");
|
||||
if (Config::Language == ELanguage_Japanese)
|
||||
if (Config::Language == Language::Japanese)
|
||||
return 0x0101;
|
||||
|
||||
return 0x03FF;
|
||||
@@ -191,7 +191,7 @@ void XamShowMessageBoxUIEx()
|
||||
uint32_t XGetLanguage()
|
||||
{
|
||||
// printf("!!! STUB !!! XGetLanguage\n");
|
||||
return Config::Language;
|
||||
return (uint32_t)Config::Language.Value;
|
||||
}
|
||||
|
||||
uint32_t XGetAVPack()
|
||||
@@ -336,7 +336,7 @@ uint32_t ExGetXConfigSetting(uint16_t Category, uint16_t Setting, void* Buffer,
|
||||
|
||||
// XCONFIG_USER_LANGUAGE
|
||||
case 0x0009:
|
||||
data[0] = std::byteswap((uint32_t)Config::Language);
|
||||
data[0] = std::byteswap((uint32_t)Config::Language.Value);
|
||||
break;
|
||||
|
||||
// XCONFIG_USER_VIDEO_FLAGS
|
||||
|
||||
Reference in New Issue
Block a user