use entry name instead of symbol for hashes

This commit is contained in:
inspectredc
2024-04-04 21:09:22 -06:00
committed by Lywx
parent 2303fd6aef
commit 7275fc871e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ ExportResult SF64::ScriptBinaryExporter::Export(std::ostream &write, std::shared
wrapper->CreateFile(entryName + "_cmd_" + std::to_string(ptrCount), std::vector(data.begin(), data.end()));
std::ostringstream cmdName;
cmdName << symbol << "_cmd_" << std::dec << ptrCount;
cmdName << entryName << "_cmd_" << std::dec << ptrCount;
ptrMap[ptr] = CRC64(cmdName.str().c_str());
ptrCount++;
}
+1 -1
View File
@@ -98,7 +98,7 @@ ExportResult SF64::SkeletonBinaryExporter::Export(std::ostream &write, std::shar
// Populate map of limbs with hashes
for (auto &limb : limbs) {
std::ostringstream limbDefaultName;
limbDefaultName << symbol << "_limb_" << std::dec << limb.mIndex;
limbDefaultName << entryName << "_limb_" << std::dec << limb.mIndex;
limbDict[limb.mAddr] = CRC64(limbDefaultName.str().c_str());
}