diff --git a/sysmodules/loader/source/patcher.c b/sysmodules/loader/source/patcher.c index f768796..05ec618 100644 --- a/sysmodules/loader/source/patcher.c +++ b/sysmodules/loader/source/patcher.c @@ -403,7 +403,7 @@ static inline bool loadTitleLocaleConfig(u64 progId, u8 *mask, u8 *regionId, u8 ret = true; - static const char *regions[] = {"--", "JPN", "USA", "EUR", "AUS", "CHN", "KOR", "TWN"}, + static const char *regions[] = {"---", "JPN", "USA", "EUR", "AUS", "CHN", "KOR", "TWN"}, *languages[] = {"--", "JP", "EN", "FR", "DE", "IT", "ES", "ZH", "KO", "NL", "PT", "RU", "TW"}, *countries[] = {"--", "JP", "--", "--", "--", "--", "--", "--", "AI", "AG", "AR", "AW", "BS", "BB", "BZ", "BO", "BR", "VG", "CA", "KY", "CL", "CO", "CR", "DM", diff --git a/sysmodules/rosalina/kernel_extension/source/svc/KernelSetState.c b/sysmodules/rosalina/kernel_extension/source/svc/KernelSetState.c index bd228bc..1773eaa 100644 --- a/sysmodules/rosalina/kernel_extension/source/svc/KernelSetState.c +++ b/sysmodules/rosalina/kernel_extension/source/svc/KernelSetState.c @@ -122,7 +122,7 @@ Result KernelSetStateHook(u32 type, u32 varg1, u32 varg2, u32 varg3) processLangemuAttributes[i].state = (u8)(varg1 >> 24); processLangemuAttributes[i].country = (u8)(varg1 >> 16); processLangemuAttributes[i].language = (u8)(varg1 >> 8); - processLangemuAttributes[i].region = (u8)(varg1 >> 4); + processLangemuAttributes[i].region = (u8)((varg1 >> 4) & 0xf); processLangemuAttributes[i].mask = (u8)(varg1 & 0xf); } else