diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2024-03-10 16:09:20 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2024-03-10 16:09:20 -0600 |
| commit | 951e84d97d15204bbae2fcb036dc57eaaf4039ae (patch) | |
| tree | ed840cb04599e24c7e76130cd7495d22238ba1aa /src/factories/DisplayListFactory.cpp | |
| parent | ef6befae9a18ff8bf10f34af205ba696cb50e921 (diff) | |
Replaced displaylists and vertices with size:, and added debug for textures
Diffstat (limited to 'src/factories/DisplayListFactory.cpp')
| -rw-r--r-- | src/factories/DisplayListFactory.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/factories/DisplayListFactory.cpp b/src/factories/DisplayListFactory.cpp index 4d9360f..caaa87a 100644 --- a/src/factories/DisplayListFactory.cpp +++ b/src/factories/DisplayListFactory.cpp @@ -127,14 +127,13 @@ void DListCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> write << "};\n"; if (Companion::Instance->IsDebug()) { + const auto sz = (sizeof(uint32_t) * cmds.size()); - std::string str = ((sizeof(uint32_t) * cmds.size()) / 8) == 1 ? " displaylist" : " displaylists"; - - write << "// " << std::hex << std::uppercase << ((sizeof(uint32_t) * cmds.size()) / 8) << str << "\n"; + write << "// size: 0x" << std::hex << std::uppercase << (sz / 8) << "\n"; if (IS_SEGMENTED(offset)) { offset = SEGMENT_OFFSET(offset); } - write << "// 0x" << std::hex << std::uppercase << (offset + (sizeof(uint32_t) * (cmds.size()))) << "\n"; + write << "// 0x" << std::hex << std::uppercase << (offset + sz) << "\n"; } write << "\n"; |
