From e90ce0ef0d83e9734d409c357d78e92c80a47172 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 15 Oct 2021 16:28:58 +0200 Subject: [PATCH] Improve region detection on launch --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 60bcf80..c045c3b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -114,17 +114,17 @@ ON_FUNCTIONS_PATCHED() { auto res = real_ACPGetLaunchMetaXml(acpMetaXml); if (res >= 0) { regionFromXML = acpMetaXml->region; - if (acpMetaXml->region == 1) { + if (OSGetTitleID() == 0x0005001010040000L || acpMetaXml->region == 1) { DEBUG_FUNCTION_LINE("Set default to JAPAN"); gDefaultProductArea = MCP_REGION_JAPAN; gDefaultLanguage = gDefaultLangForJPN; gDefaultCountry = gDefaultCountryForJPN; - } else if (acpMetaXml->region == 2) { + } else if (OSGetTitleID() == 0x0005001010040100L || acpMetaXml->region == 2) { DEBUG_FUNCTION_LINE("Set default to USA"); gDefaultProductArea = MCP_REGION_USA; gDefaultLanguage = gDefaultLangForUSA; gDefaultCountry = gDefaultCountryForUSA; - } else if (acpMetaXml->region == 4) { + } else if (OSGetTitleID() == 0x0005001010040200L || acpMetaXml->region == 4) { DEBUG_FUNCTION_LINE("Set default to EUR"); gDefaultProductArea = MCP_REGION_EUROPE; gDefaultLanguage = gDefaultLangForEUR;