Added size on DisplayList and Vtx

This commit is contained in:
KiritoDv
2024-02-20 21:19:21 -06:00
parent 04e4e9dd8c
commit 3845d02cf6
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -118,9 +118,9 @@ void DListCodeExporter::Export(std::ostream &write, std::shared_ptr<IParsedData>
gfxd_puts(("Gfx " + symbol + "[] = {\n").c_str());
gfxd_execute();
gfxd_puts("};\n\n");
write << std::string(out);
write << "}; // size = 0x" << std::hex << std::uppercase << (sizeof(uint32_t) * cmds.size()) << "\n\n";
}
void DebugDisplayList(uint32_t w0, uint32_t w1){
@@ -429,5 +429,7 @@ std::optional<std::shared_ptr<IParsedData>> DListFactory::parse(std::vector<uint
gfxs.push_back(w1);
}
return std::make_shared<DListData>(gfxs);
}