summaryrefslogtreecommitdiff
path: root/ZAPD/ZVector.cpp
diff options
context:
space:
mode:
authorAnghelo Carvajal <angheloalf95@gmail.com>2021-10-01 22:19:47 -0300
committerGitHub <noreply@github.com>2021-10-01 21:19:47 -0400
commit6b06266eb8d35a7865aa1f942ecbe393e7cde740 (patch)
tree6b23ec1617f1ae76f49079ccc9c93c7f4d06eff3 /ZAPD/ZVector.cpp
parent26b00a2431a70ff190a2b22ee1faf77afa75a034 (diff)
Add `--static` flag (#193)
* remove static from every extracted asset * fix makefile * Move a bunch of code to Declaration * make static enablalble * fix texture static * clean up * minor fixes * Format * add small docs * fix * add table * add note in the readme * typo * maybe_unused * Add warning to ZSymbol * format * fix
Diffstat (limited to 'ZAPD/ZVector.cpp')
-rw-r--r--ZAPD/ZVector.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/ZAPD/ZVector.cpp b/ZAPD/ZVector.cpp
index 69171a8..31d5dc4 100644
--- a/ZAPD/ZVector.cpp
+++ b/ZAPD/ZVector.cpp
@@ -94,9 +94,10 @@ std::string ZVector::GetBodySourceCode() const
std::string ZVector::GetSourceOutputCode([[maybe_unused]] const std::string& prefix)
{
- if (parent != nullptr)
+ Declaration* decl =
parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align4, GetRawDataSize(),
- GetSourceTypeName(), GetName(), GetBodySourceCode());
+ GetSourceTypeName(), GetName(), GetBodySourceCode());
+ decl->staticConf = staticConf;
return "";
}