diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2025-03-30 20:42:34 -0400 |
|---|---|---|
| committer | louist103 <35883445+louist103@users.noreply.github.com> | 2025-03-30 20:42:34 -0400 |
| commit | c3ee03cfe3072fc01df256d365115a1f3ccaf012 (patch) | |
| tree | ef1ac3ad6621a144a58e9c019c0b67daa761dace /ZAPD/ZRom.cpp | |
| parent | 8a37f953df8dd7243e6fb0f97d89371acf8de18b (diff) | |
Add ifdef block around yar check
Diffstat (limited to 'ZAPD/ZRom.cpp')
| -rw-r--r-- | ZAPD/ZRom.cpp | 12 |
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) { |
