diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-03-10 16:17:32 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-03-10 16:17:32 -0600 |
| commit | e2372f45a2885965c3b64071bfa096da798ded3c (patch) | |
| tree | 2d73f164bc7b6e9d92f9890041f54ebe77861267 /src/factories/VtxFactory.cpp | |
| parent | 951e84d97d15204bbae2fcb036dc57eaaf4039ae (diff) | |
Added sizes on more factories
Diffstat (limited to 'src/factories/VtxFactory.cpp')
| -rw-r--r-- | src/factories/VtxFactory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/factories/VtxFactory.cpp b/src/factories/VtxFactory.cpp index c0b06ea..1aabaf0 100644 --- a/src/factories/VtxFactory.cpp +++ b/src/factories/VtxFactory.cpp @@ -28,6 +28,9 @@ void VtxCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> r } if (Companion::Instance->IsDebug()) { + if (IS_SEGMENTED(offset)) { + offset = SEGMENT_OFFSET(offset); + } write << "// 0x" << std::hex << std::uppercase << offset << "\n"; } @@ -61,7 +64,7 @@ void VtxCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> r write << "};\n"; if (Companion::Instance->IsDebug()) { - write << "// size: " << vtx.size() << "\n"; + write << "// count: " << vtx.size() << "\n"; write << "// 0x" << std::hex << std::uppercase << (offset + (sizeof(VtxRaw) * vtx.size())) << "\n"; } |
