From 5934e4e0772eb910536e566728e14d3537d8e412 Mon Sep 17 00:00:00 2001 From: louist103 <35883445+louist103@users.noreply.github.com> Date: Sat, 28 Oct 2023 01:06:21 -0400 Subject: MM --- ZAPD/ZFile.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'ZAPD/ZFile.cpp') diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp index 44974b3..25bf5a0 100644 --- a/ZAPD/ZFile.cpp +++ b/ZAPD/ZFile.cpp @@ -883,6 +883,10 @@ void ZFile::GenerateSourceHeaderFiles() std::set nameSet; for (ZResource* res : resources) { + if (res->GetResourceType() == ZResourceType::TextureAnimation) + { + int bp = 1; + } std::string resSrc = res->GetSourceOutputHeader("", &nameSet); if (!resSrc.empty()) { @@ -917,18 +921,24 @@ void ZFile::GenerateSourceHeaderFiles() auto pathList = StringHelper::Split(xmlPath, "/"); std::string outPath = ""; - for (int i = 0; i < 3; i++) - outPath += pathList[i] + "/"; - - for (int i = 5; i < pathList.size(); i++) + //for (int i = 0; i < 3; i++) + // outPath += pathList[i] + "/"; + // + for (int i = 0; i < pathList.size(); i++) { if (i == pathList.size() - 1) { outPath += Path::GetFileNameWithoutExtension(pathList[i]) + "/"; outPath += outName.string() + ".h"; } - else + else if (pathList[i] != "xml") + { outPath += pathList[i]; + } + else + { + continue; + } if (i < pathList.size() - 1) outPath += "/"; -- cgit v1.2.3