summaryrefslogtreecommitdiff
path: root/ZAPD/ZRom.cpp
diff options
context:
space:
mode:
authorlouist103 <35883445+louist103@users.noreply.github.com>2025-03-30 20:42:34 -0400
committerlouist103 <35883445+louist103@users.noreply.github.com>2025-03-30 20:42:34 -0400
commitc3ee03cfe3072fc01df256d365115a1f3ccaf012 (patch)
treeef1ac3ad6621a144a58e9c019c0b67daa761dace /ZAPD/ZRom.cpp
parent8a37f953df8dd7243e6fb0f97d89371acf8de18b (diff)
Add ifdef block around yar check
Diffstat (limited to 'ZAPD/ZRom.cpp')
-rw-r--r--ZAPD/ZRom.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/ZAPD/ZRom.cpp b/ZAPD/ZRom.cpp
index c9cc8d7..20b0eab 100644
--- a/ZAPD/ZRom.cpp
+++ b/ZAPD/ZRom.cpp
@@ -252,12 +252,14 @@ ZRom::ZRom(std::string romPath)
auto outData = std::vector<uint8_t>();
outData.resize(size);
memcpy(outData.data(), romData.data() + physStart, size);
- if (Globals::Instance->game == ZGame::MM_RETAIL) {
- if ((i >= 15 && i <= 20) || i == 22)
- {
- yarCompressed = true;
- }
+ // An ifdef is used here because at this point the XMLs haven't been parsed, and we don't
+ // know if this is MM or OOT
+#ifdef GAME_MM
+ if ((i >= 15 && i <= 20) || i == 22)
+ {
+ yarCompressed = true;
}
+#endif
if (compressed)
{