mirror of
https://github.com/wiiu-env/region_free_plugin.git
synced 2024-11-22 03:19:17 +01:00
Improve region detection on launch
This commit is contained in:
parent
088d17ca24
commit
e90ce0ef0d
@ -114,17 +114,17 @@ ON_FUNCTIONS_PATCHED() {
|
|||||||
auto res = real_ACPGetLaunchMetaXml(acpMetaXml);
|
auto res = real_ACPGetLaunchMetaXml(acpMetaXml);
|
||||||
if (res >= 0) {
|
if (res >= 0) {
|
||||||
regionFromXML = acpMetaXml->region;
|
regionFromXML = acpMetaXml->region;
|
||||||
if (acpMetaXml->region == 1) {
|
if (OSGetTitleID() == 0x0005001010040000L || acpMetaXml->region == 1) {
|
||||||
DEBUG_FUNCTION_LINE("Set default to JAPAN");
|
DEBUG_FUNCTION_LINE("Set default to JAPAN");
|
||||||
gDefaultProductArea = MCP_REGION_JAPAN;
|
gDefaultProductArea = MCP_REGION_JAPAN;
|
||||||
gDefaultLanguage = gDefaultLangForJPN;
|
gDefaultLanguage = gDefaultLangForJPN;
|
||||||
gDefaultCountry = gDefaultCountryForJPN;
|
gDefaultCountry = gDefaultCountryForJPN;
|
||||||
} else if (acpMetaXml->region == 2) {
|
} else if (OSGetTitleID() == 0x0005001010040100L || acpMetaXml->region == 2) {
|
||||||
DEBUG_FUNCTION_LINE("Set default to USA");
|
DEBUG_FUNCTION_LINE("Set default to USA");
|
||||||
gDefaultProductArea = MCP_REGION_USA;
|
gDefaultProductArea = MCP_REGION_USA;
|
||||||
gDefaultLanguage = gDefaultLangForUSA;
|
gDefaultLanguage = gDefaultLangForUSA;
|
||||||
gDefaultCountry = gDefaultCountryForUSA;
|
gDefaultCountry = gDefaultCountryForUSA;
|
||||||
} else if (acpMetaXml->region == 4) {
|
} else if (OSGetTitleID() == 0x0005001010040200L || acpMetaXml->region == 4) {
|
||||||
DEBUG_FUNCTION_LINE("Set default to EUR");
|
DEBUG_FUNCTION_LINE("Set default to EUR");
|
||||||
gDefaultProductArea = MCP_REGION_EUROPE;
|
gDefaultProductArea = MCP_REGION_EUROPE;
|
||||||
gDefaultLanguage = gDefaultLangForEUR;
|
gDefaultLanguage = gDefaultLangForEUR;
|
||||||
|
Loading…
Reference in New Issue
Block a user