diff options
| author | louist103 <35883445+louist103@users.noreply.github.com> | 2023-10-28 01:06:21 -0400 |
|---|---|---|
| committer | louist103 <35883445+louist103@users.noreply.github.com> | 2023-10-28 01:06:21 -0400 |
| commit | 5934e4e0772eb910536e566728e14d3537d8e412 (patch) | |
| tree | e4065cf06b22a4e2ec1f6da2a4e99568f3c86246 /ZAPD/ZFile.cpp | |
| parent | cc8bd2fd01672446bb2f4613f402f2310f5ce62d (diff) | |
MM
Diffstat (limited to 'ZAPD/ZFile.cpp')
| -rw-r--r-- | ZAPD/ZFile.cpp | 20 |
1 files changed, 15 insertions, 5 deletions
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<std::string> 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 += "/"; |
