diff options
| author | coco875 <pereira.jannin@gmail.com> | 2025-11-29 02:53:32 +0100 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-12-01 12:39:42 -0600 |
| commit | fa41ca66ce7acc3bc27939eb012a6b87472e377b (patch) | |
| tree | 20cf21dd4c2ea08dd6242c537789c897e0fc16a4 /src | |
| parent | 2f4d044fb00cc10ed1bdb52bb1039a7ed35a2165 (diff) | |
Update TrackSections.cpp
Diffstat (limited to 'src')
| -rw-r--r-- | src/factories/mk64/TrackSections.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/factories/mk64/TrackSections.cpp b/src/factories/mk64/TrackSections.cpp index 4a4fdb8..63ad4a4 100644 --- a/src/factories/mk64/TrackSections.cpp +++ b/src/factories/mk64/TrackSections.cpp @@ -33,7 +33,7 @@ ExportResult MK64::TrackSectionsCodeExporter::Export(std::ostream &write, std::s for (int i = 0; i < sections.size(); i++) { auto entry = sections[i]; - auto addr = entry.addr; + auto crc = entry.crc; auto surf = entry.surfaceType; auto sect = entry.sectionId; auto flags = entry.flags; @@ -43,7 +43,7 @@ ExportResult MK64::TrackSectionsCodeExporter::Export(std::ostream &write, std::s } // { addr, surface, section, flags }, - write << "{" << NUM(addr) << ", " << NUM(surf) << ", " << NUM(sect) << ", " << NUM(flags) << "},\n"; + write << "{" << NUM(crc) << ", " << NUM(surf) << ", " << NUM(sect) << ", " << NUM(flags) << "},\n"; } write << "};\n"; @@ -57,10 +57,10 @@ ExportResult MK64::TrackSectionsBinaryExporter::Export(std::ostream &write, std: WriteHeader(writer, Torch::ResourceType::TrackSection, 0); writer.Write((uint32_t) sections->mSecs.size()); for(auto entry : sections->mSecs) { - auto dec = Companion::Instance->GetSafeStringByAddr(entry.addr, "GFX"); + auto dec = Companion::Instance->GetSafeStringByAddr(entry.crc, "GFX"); if(!dec.has_value()){ - SPDLOG_WARN("Could not find gfx at 0x{:X}", entry.addr); - writer.Write(entry.addr); + SPDLOG_WARN("Could not find gfx at 0x{:X}", entry.crc); + writer.Write(entry.crc); } else { uint64_t hash = CRC64(dec.value().c_str()); writer.Write(hash); |
