diff --git a/img/UniversalUpdater.png b/img/UniversalUpdater.png deleted file mode 100644 index 83f716f..0000000 Binary files a/img/UniversalUpdater.png and /dev/null differ diff --git a/include/Megamix/Region.hpp b/include/Megamix/Region.hpp index e8a26f7..3cf888e 100644 --- a/include/Megamix/Region.hpp +++ b/include/Megamix/Region.hpp @@ -11,12 +11,12 @@ extern u8 region; namespace Region { enum { - JP, - US, - EU, - KR, - UNK, - KR_CTR = 5 // in the SDK, KR is 5 instead of 3 + JP = 0, + US = 1, + EU = 2, + KR = 3, + KR_CTR = 5, // in the SDK, KR is 5 instead of 3 + UNK }; u8 FromCode(u32 code); diff --git a/src/Megamix/Hooks.cpp b/src/Megamix/Hooks.cpp index 8244262..7d808be 100644 --- a/src/Megamix/Hooks.cpp +++ b/src/Megamix/Hooks.cpp @@ -101,7 +101,8 @@ namespace Megamix::Hooks { } } - u32 getRegion() { + u32 getRegionCTR() { + //TODO: handle JP region / JP langpack if (region == Region::KR) return Region::KR_CTR; return region; @@ -135,7 +136,7 @@ namespace Megamix::Hooks { rtInitHook(®ionFSHook, Region::RegionFSHookFunc(), (u32)getRegionMegamix); rtEnableHook(®ionFSHook); } - rtInitHook(®ionOtherHook, Region::RegionOtherHookFunc(), (u32)getRegion); + rtInitHook(®ionOtherHook, Region::RegionOtherHookFunc(), (u32)getRegionCTR); rtEnableHook(®ionOtherHook); } diff --git a/src/Megamix/Region.cpp b/src/Megamix/Region.cpp index f461c54..ce13149 100644 --- a/src/Megamix/Region.cpp +++ b/src/Megamix/Region.cpp @@ -311,8 +311,9 @@ namespace Region { switch (region) { case US: case EU: - case KR: return 0x28c070; + case KR: + return 0x28c048; default: // this function doesn't exist in JP afaik return 0;