mirror of
https://github.com/zeldaret/oot
synced 2026-06-22 00:46:38 -04:00
Update ZAPD (#1569)
* git subrepo pull --force tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "094e79734" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "094e79734" git-subrepo: version: "0.4.6" origin: "https://github.com/ingydotnet/git-subrepo" commit: "110b9eb" * Add EnumData.xml where some names are now externalized * Remove legacy typedefs for zapd, no longer needed!
This commit is contained in:
@@ -32,7 +32,7 @@ void ZPlayerAnimationData::ParseRawData()
|
||||
|
||||
for (size_t i = 0; i < totalSize; i += 2)
|
||||
{
|
||||
limbRotData.push_back(BitConverter::ToUInt16BE(rawData, rawDataIndex + i));
|
||||
limbRotData.push_back(BitConverter::ToInt16BE(rawData, rawDataIndex + i));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -55,14 +55,21 @@ std::string ZPlayerAnimationData::GetBodySourceCode() const
|
||||
std::string declaration = "";
|
||||
|
||||
size_t index = 0;
|
||||
for (const auto& entry : limbRotData)
|
||||
for (const auto entry : limbRotData)
|
||||
{
|
||||
if (index % 8 == 0)
|
||||
{
|
||||
declaration += "\t";
|
||||
}
|
||||
|
||||
declaration += StringHelper::Sprintf("0x%04X, ", entry);
|
||||
if (entry < 0)
|
||||
{
|
||||
declaration += StringHelper::Sprintf("-0x%04X, ", -entry);
|
||||
}
|
||||
else
|
||||
{
|
||||
declaration += StringHelper::Sprintf("0x%04X, ", entry);
|
||||
}
|
||||
|
||||
if ((index + 1) % 8 == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user