Replaced displaylists and vertices with size:, and added debug for textures

This commit is contained in:
KiritoDv
2024-03-10 16:09:20 -06:00
parent ef6befae9a
commit 951e84d97d
3 changed files with 26 additions and 6 deletions
+3 -4
View File
@@ -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";