From 6b06266eb8d35a7865aa1f942ecbe393e7cde740 Mon Sep 17 00:00:00 2001 From: Anghelo Carvajal Date: Fri, 1 Oct 2021 22:19:47 -0300 Subject: 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 --- ZAPD/ZVector.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ZAPD/ZVector.cpp') 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 ""; } -- cgit v1.2.3