diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-02-18 16:54:21 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-02-18 16:54:21 -0600 |
| commit | 298b3ff0d09ac94b5c826aa9e33337e89c6ff194 (patch) | |
| tree | 712aa4df63773d57df6316dd6a84c09856af2495 /src/factories/TextureFactory.cpp | |
| parent | 510ffd4710b805a0240594a71f44520dc43206fc (diff) | |
Enhanced header definition
Diffstat (limited to 'src/factories/TextureFactory.cpp')
| -rw-r--r-- | src/factories/TextureFactory.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/factories/TextureFactory.cpp b/src/factories/TextureFactory.cpp index e5b8caa..cef79c1 100644 --- a/src/factories/TextureFactory.cpp +++ b/src/factories/TextureFactory.cpp @@ -81,7 +81,11 @@ void TextureHeaderExporter::Export(std::ostream &write, std::shared_ptr<IParsedD return; } - write << "extern u8 " << symbol << "[" << data.size() << "];\n"; + if(node["ctype"]) { + write << "extern " << node["ctype"].as<std::string>() << " " << symbol << "[];\n"; + } else { + write << "extern u8 " << symbol << "[];\n"; + } } void TextureCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement) { |
