summaryrefslogtreecommitdiff
path: root/src/factories/DisplayListFactory.cpp
diff options
context:
space:
mode:
authorLywx <kiritodev01@gmail.com>2024-03-22 09:59:49 -0600
committerGitHub <noreply@github.com>2024-03-22 09:59:49 -0600
commitaaa68d2ebcb732d7d18af1a41a292c50182e7fd5 (patch)
tree4b93c2a1899e6b2ebfcfe7cf4c2c06e8461c6aa4 /src/factories/DisplayListFactory.cpp
parent6e9f82312178d1fbc002a04ce97cf8b5add1f402 (diff)
Cleanup (#49)
* Auto debug info generation and some cleanup * Cleaned dry code from segments * Fixed gCurrentCompressionType bss bs
Diffstat (limited to 'src/factories/DisplayListFactory.cpp')
-rw-r--r--src/factories/DisplayListFactory.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/factories/DisplayListFactory.cpp b/src/factories/DisplayListFactory.cpp
index 88965ad..29c1bf9 100644
--- a/src/factories/DisplayListFactory.cpp
+++ b/src/factories/DisplayListFactory.cpp
@@ -114,13 +114,6 @@ ExportResult DListCodeExporter::Export(std::ostream &write, std::shared_ptr<IPar
gfxd_lightsn_callback(GFXDOverride::Light);
GFXDSetGBIVersion();
- if (Companion::Instance->IsDebug()) {
- if (IS_SEGMENTED(offset)) {
- offset = SEGMENT_OFFSET(offset);
- }
- write << "// 0x" << std::hex << std::uppercase << offset << "\n";
- }
-
gfxd_puts(("Gfx " + symbol + "[] = {\n").c_str());
gfxd_execute();
@@ -132,7 +125,7 @@ ExportResult DListCodeExporter::Export(std::ostream &write, std::shared_ptr<IPar
write << "// count: " << std::to_string(sz / 8) << " Gfx\n";
}
- return (IS_SEGMENTED(offset) ? SEGMENT_OFFSET(offset) : offset) + sz;
+ return offset + sz;
}
void DebugDisplayList(uint32_t w0, uint32_t w1){