diff options
| author | Archez <Archez@users.noreply.github.com> | 2024-01-09 21:33:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-09 21:33:41 -0500 |
| commit | 51917d817a5828c075ec1e31eac4205e9b456ea7 (patch) | |
| tree | 02408567cee1d398474328393e85c7028c290552 /ZAPD/ZRom.cpp | |
| parent | f30b7de367aceb8d3d09d12f4880bf4bd75972dd (diff) | |
add mm crc (#2)
Diffstat (limited to 'ZAPD/ZRom.cpp')
| -rw-r--r-- | ZAPD/ZRom.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/ZAPD/ZRom.cpp b/ZAPD/ZRom.cpp index 1dd5174..eb4f210 100644 --- a/ZAPD/ZRom.cpp +++ b/ZAPD/ZRom.cpp @@ -66,7 +66,8 @@ namespace fs = std::filesystem; #define OOT_IQUE_CN 0xB1E1E07B #define UNKNOWN 0xFFFFFFFF -#define MM_NTSC_10 0xDA6983E7 +#define MM_NTSC_10 0x5354631C +#define MM_NTSC_10_UNCOMPRESSED 0xDA6983E7 bool ZRom::IsMQ() { int crc = BitConverter::ToInt32BE(romData, 0x10); @@ -84,7 +85,9 @@ bool ZRom::IsMQ() { case OOT_PAL_GC_DBG2: case OOT_IQUE_CN: case OOT_IQUE_TW: - case MM_NTSC_10: + // MM - Always not MQ + case MM_NTSC_10: + case MM_NTSC_10_UNCOMPRESSED: default: return false; case OOT_NTSC_JP_MQ: @@ -195,6 +198,10 @@ ZRom::ZRom(std::string romPath) version.version = "MM US 1.0"; version.listPath = "mm.txt"; version.offset = MM_OFF_US_10; + case MM_NTSC_10_UNCOMPRESSED: + version.version = "MM US 1.0"; + version.listPath = "mm.txt"; + version.offset = MM_OFF_US_10; } auto path = StringHelper::Sprintf("%s/%s", Globals::Instance->fileListPath.string().c_str(), version.listPath.c_str()); |
