summaryrefslogtreecommitdiff
path: root/ZAPD/ZFile.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-09-26 00:58:12 -0300
committerGitHub <noreply@github.com>2021-09-25 23:58:12 -0400
commit9b705cf2e5f571a6c1116a476a2d11ca21948bad (patch)
treed92d248eaa93b1f791eb2f2412f710f9d4f32c22 /ZAPD/ZFile.cpp
parent00fe996c8a23c3a5b593e94f21715eee5f843f16 (diff)
Change VTXs `#include`s to be consistent (#185)
* Change VTXs incloudes to be consistent * Remove redundant check * Run formatter * Emtpy commit to trigger Jenkins * update gitignore
Diffstat (limited to 'ZAPD/ZFile.cpp')
-rw-r--r--ZAPD/ZFile.cpp28
1 files changed, 7 insertions, 21 deletions
diff --git a/ZAPD/ZFile.cpp b/ZAPD/ZFile.cpp
index 6186205..472d3a7 100644
--- a/ZAPD/ZFile.cpp
+++ b/ZAPD/ZFile.cpp
@@ -1068,29 +1068,15 @@ std::string ZFile::ProcessDeclarations()
item.second->text);
}
- // Do not asm_process vertex arrays. They have no practical use being overridden.
- // if (item.second->varType == "Vtx" || item.second->varType == "static Vtx")
- if (item.second->varType != "u64" && item.second->varType != "static u64" &&
- item.second->varType != "u8" && item.second->varType != "static u8")
- {
+ if (item.second->arrayItemCntStr != "")
output += StringHelper::Sprintf(
- "%s %s[] = {\n #include \"%s\"\n};\n\n", item.second->varType.c_str(),
- item.second->varName.c_str(),
- StringHelper::Replace(item.second->includePath, "assets/", "../assets/")
- .c_str());
- }
+ "%s %s[%s] = {\n #include \"%s\"\n};\n\n", item.second->varType.c_str(),
+ item.second->varName.c_str(), item.second->arrayItemCntStr.c_str(),
+ item.second->includePath.c_str());
else
- {
- if (item.second->arrayItemCntStr != "")
- output += StringHelper::Sprintf(
- "%s %s[%s] = {\n #include \"%s\"\n};\n\n", item.second->varType.c_str(),
- item.second->varName.c_str(), item.second->arrayItemCntStr.c_str(),
- item.second->includePath.c_str());
- else
- output += StringHelper::Sprintf(
- "%s %s[] = {\n #include \"%s\"\n};\n\n", item.second->varType.c_str(),
- item.second->varName.c_str(), item.second->includePath.c_str());
- }
+ output += StringHelper::Sprintf(
+ "%s %s[] = {\n #include \"%s\"\n};\n\n", item.second->varType.c_str(),
+ item.second->varName.c_str(), item.second->includePath.c_str());
}
else if (item.second->varType != "")
{