diff options
| author | Anghelo Carvajal <angheloalf95@gmail.com> | 2021-10-01 22:19:47 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-01 21:19:47 -0400 |
| commit | 6b06266eb8d35a7865aa1f942ecbe393e7cde740 (patch) | |
| tree | 6b23ec1617f1ae76f49079ccc9c93c7f4d06eff3 /ZAPD/ZVtx.cpp | |
| parent | 26b00a2431a70ff190a2b22ee1faf77afa75a034 (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/ZVtx.cpp')
| -rw-r--r-- | ZAPD/ZVtx.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/ZAPD/ZVtx.cpp b/ZAPD/ZVtx.cpp index 06762bb..54420f0 100644 --- a/ZAPD/ZVtx.cpp +++ b/ZAPD/ZVtx.cpp @@ -38,21 +38,18 @@ void ZVtx::ParseRawData() std::string ZVtx::GetBodySourceCode() const { - return StringHelper::Sprintf(" VTX(%i, %i, %i, %i, %i, %i, %i, %i, %i)", x, y, z, s, t, r, g, b, - a); + return StringHelper::Sprintf(" VTX(%i, %i, %i, %i, %i, %i, %i, %i, %i)", x, y, z, s, t, r, g, + b, a); } std::string ZVtx::GetSourceOutputCode([[maybe_unused]] const std::string& prefix) { std::string output = GetBodySourceCode(); - if (parent != nullptr) - { - Declaration* decl = - parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align16, GetRawDataSize(), - GetSourceTypeName(), name, output); - decl->isExternal = true; - } + Declaration* decl = parent->AddDeclaration(rawDataIndex, DeclarationAlignment::Align16, + GetRawDataSize(), GetSourceTypeName(), name, output); + decl->isExternal = true; + decl->staticConf = staticConf; return ""; } |
