diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2024-03-09 22:42:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-09 23:42:25 -0600 |
| commit | c4bb1ad8ee74a2ae4659926717ed7de9ee1e0c69 (patch) | |
| tree | 97696a23efeb1555066401fbcb8ba408ada43252 /src/factories/VtxFactory.cpp | |
| parent | a2d735c5281862fdc6ece2288694ca2af743c7af (diff) | |
Update IsDebug (#25)
Co-authored-by: = <=>
Diffstat (limited to 'src/factories/VtxFactory.cpp')
| -rw-r--r-- | src/factories/VtxFactory.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/factories/VtxFactory.cpp b/src/factories/VtxFactory.cpp index b8d4d79..2c225f9 100644 --- a/src/factories/VtxFactory.cpp +++ b/src/factories/VtxFactory.cpp @@ -58,11 +58,14 @@ void VtxCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> r write << "{{{" << NUM(x) << ", " << NUM(y) << ", " << NUM(z) << "}, " << flag << ", {" << NUM(tc1) << ", " << NUM(tc2) << "}, {" << COL(c1) << ", " << COL(c2) << ", " << COL(c3) << ", " << COL(c4) << "}}},\n"; } + write << "};\n"; + if (Companion::Instance->IsDebug()) { - write << fourSpaceTab << "// 0x" << std::hex << std::uppercase << (offset + (sizeof(VtxRaw) * vtx.size())) << "\n"; + write << "// " << vtx.size() << " vertices\n"; + write << "// 0x" << std::hex << std::uppercase << (offset + (sizeof(VtxRaw) * vtx.size())) << "\n"; } - write << "}; // size = 0x" << std::hex << std::uppercase << (sizeof(VtxRaw) * vtx.size()) << "\n\n"; + write << "\n"; } void VtxBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) { |
