summaryrefslogtreecommitdiff
path: root/ZAPD/ZLimb.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/ZLimb.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/ZLimb.cpp')
-rw-r--r--ZAPD/ZLimb.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/ZAPD/ZLimb.cpp b/ZAPD/ZLimb.cpp
index 9099ac1..048f070 100644
--- a/ZAPD/ZLimb.cpp
+++ b/ZAPD/ZLimb.cpp
@@ -370,8 +370,9 @@ void ZLimb::ExtractFromXML(tinyxml2::XMLElement* reader, uint32_t nRawDataIndex)
{
ZResource::ExtractFromXML(reader, nRawDataIndex);
- parent->AddDeclaration(GetFileAddress(), DeclarationAlignment::Align4, GetRawDataSize(),
- GetSourceTypeName(), name, "");
+ Declaration* decl = parent->AddDeclaration(GetFileAddress(), DeclarationAlignment::Align4,
+ GetRawDataSize(), GetSourceTypeName(), name, "");
+ decl->staticConf = staticConf;
}
void ZLimb::ParseXML(tinyxml2::XMLElement* reader)
@@ -586,10 +587,11 @@ std::string ZLimb::GetSourceOutputCode(const std::string& prefix)
Declaration* decl = parent->GetDeclaration(GetFileAddress());
if (decl == nullptr)
- parent->AddDeclaration(GetFileAddress(), DeclarationAlignment::Align4, GetRawDataSize(),
- GetSourceTypeName(), name, entryStr);
+ decl = parent->AddDeclaration(GetFileAddress(), DeclarationAlignment::Align4,
+ GetRawDataSize(), GetSourceTypeName(), name, entryStr);
else
decl->text = entryStr;
+ decl->staticConf = staticConf;
return "";
}