From 6d5f37db337ac10be180527d98d1676c2be3344d Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sat, 6 Apr 2024 12:28:51 -0600 Subject: Fixed DisplayList Binary extraction and some other factories --- src/factories/DisplayListFactory.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/factories/DisplayListFactory.cpp') diff --git a/src/factories/DisplayListFactory.cpp b/src/factories/DisplayListFactory.cpp index 8886d7d..02df2a5 100644 --- a/src/factories/DisplayListFactory.cpp +++ b/src/factories/DisplayListFactory.cpp @@ -233,14 +233,15 @@ ExportResult DListBinaryExporter::Export(std::ostream &write, std::shared_ptr(overlap.value()); - uint64_t hash = CRC64(std::get<0>(overlap.value()).c_str()); - SPDLOG_INFO("Found vtx: 0x{:X} Hash: 0x{:X} Path: {}", ptr, hash, std::get<0>(overlap.value())); + auto path = Companion::Instance->RelativePath(std::get<0>(overlap.value())); + uint64_t hash = CRC64(path.c_str()); + SPDLOG_INFO("Found vtx: 0x{:X} Hash: 0x{:X} Path: {}", ptr, hash, path); auto offset = GetSafeNode(ovnode, "offset"); auto count = GetSafeNode(ovnode, "count"); auto diff = ASSET_PTR(ptr) - ASSET_PTR(offset); - Gfx value = gsSPVertexOTR(diff, nvtx, ((didx >> 1) - nvtx)); + Gfx value = gsSPVertexOTR(diff, nvtx, didx); SPDLOG_INFO("gsSPVertexOTR({}, {}, {})", diff, nvtx, didx); -- cgit v1.2.3