From 951e84d97d15204bbae2fcb036dc57eaaf4039ae Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sun, 10 Mar 2024 16:09:20 -0600 Subject: Replaced displaylists and vertices with size:, and added debug for textures --- src/factories/DisplayListFactory.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/factories/DisplayListFactory.cpp') 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 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"; -- cgit v1.2.3