summaryrefslogtreecommitdiff
path: root/ZAPD/ZRom.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2025-03-30 18:32:16 -0400
committerlouist103 <35883445+louist103@users.noreply.github.com>2025-03-30 18:32:16 -0400
commit8a37f953df8dd7243e6fb0f97d89371acf8de18b (patch)
tree5e55bfc4c731d17e934afa48190dd1eb01af4914 /ZAPD/ZRom.cpp
parent44d24007c02f71d898e190d522ae332527196b8d (diff)
Only check for YARs with MM roms
Diffstat (limited to 'ZAPD/ZRom.cpp')
-rw-r--r--ZAPD/ZRom.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/ZAPD/ZRom.cpp b/ZAPD/ZRom.cpp
index 2536589..c9cc8d7 100644
--- a/ZAPD/ZRom.cpp
+++ b/ZAPD/ZRom.cpp
@@ -252,10 +252,11 @@ ZRom::ZRom(std::string romPath)
auto outData = std::vector<uint8_t>();
outData.resize(size);
memcpy(outData.data(), romData.data() + physStart, size);
-
- if ((i >= 15 && i <= 20) || i == 22)
- {
- yarCompressed = true;
+ if (Globals::Instance->game == ZGame::MM_RETAIL) {
+ if ((i >= 15 && i <= 20) || i == 22)
+ {
+ yarCompressed = true;
+ }
}
if (compressed)