diff options
| author | Archez <Archez@users.noreply.github.com> | 2024-03-03 21:35:08 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-03 21:35:08 -0500 |
| commit | a406a7d4310c26f6e7aeece3bb4475cd8fd2d9e3 (patch) | |
| tree | 33fcb24d233f2e729ec6df841a6db0a2bda4f8de /ZAPD/ZResource.cpp | |
| parent | 01ed7e87f2b4b8145d8b0af8c8d8912b86f4b908 (diff) | |
Bring over exporter arg and scene changes (#19) (#9)
Diffstat (limited to 'ZAPD/ZResource.cpp')
| -rw-r--r-- | ZAPD/ZResource.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ZAPD/ZResource.cpp b/ZAPD/ZResource.cpp index 0e8324d..768a066 100644 --- a/ZAPD/ZResource.cpp +++ b/ZAPD/ZResource.cpp @@ -335,8 +335,16 @@ std::string ZResource::GetSourceOutputHeader([[maybe_unused]] const std::string& if (StringHelper::Contains(outName, "_room_") || StringHelper::Contains(outName, "_scene") || (StringHelper::Contains(parent->GetXmlFilePath().string(), "/scenes/") || - StringHelper::Contains(parent->GetXmlFilePath().string(), "\\scenes\\"))) - prefix = "scenes/nonmq"; + StringHelper::Contains(parent->GetXmlFilePath().string(), "\\scenes\\"))) { + prefix = "scenes/shared"; + + // Regex for xml paths that are dungeons with unique MQ variants (only the main dungeon, not boss rooms) + std::regex dungeonsWithMQ(R"(((ydan)|(ddan)|(bdan)|(Bmori1)|(HIDAN)|(MIZUsin)|(jyasinzou)|(HAKAdan)|(HAKAdanCH)|(ice_doukutu)|(men)|(ganontika))\.xml)"); + + if (StringHelper::Contains(xmlPath, "dungeons/") && std::regex_search(xmlPath, dungeonsWithMQ)) { + prefix = "scenes/nonmq"; + } + } else if (StringHelper::Contains(xmlPath, "objects/")) prefix = "objects"; else if (StringHelper::Contains(xmlPath, "textures/")) |
