mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
use entry name instead of symbol for hashes
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user