summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2024-04-02 09:00:10 -0600
committerLywx <kiritodev01@gmail.com>2024-04-02 09:00:56 -0600
commit3f11f4aea0dda5f6a9fe0b7cbbdfcba3bee07bc2 (patch)
treeb9e05aa8aa48464b0bd5f08c3e3acd42eb3896e7 /src
parent3eebd9d5aaeef4adfa62d95cd6f4f60b917a48c2 (diff)
Fixed indentation
Diffstat (limited to 'src')
-rw-r--r--src/factories/sm64/AnimationFactory.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/factories/sm64/AnimationFactory.cpp b/src/factories/sm64/AnimationFactory.cpp
index 690263d..bcc09ec 100644
--- a/src/factories/sm64/AnimationFactory.cpp
+++ b/src/factories/sm64/AnimationFactory.cpp
@@ -34,18 +34,18 @@ ExportResult SM64::AnimationBinaryExporter::Export(std::ostream &write, std::sha
std::optional<std::shared_ptr<IParsedData>> SM64::AnimationFactory::parse(std::vector<uint8_t>& buffer, YAML::Node& node) {
auto offset = node["offset"];
- LUS::BinaryReader header = Decompressor::AutoDecode(node, buffer).GetReader();
- header.SetEndianness(LUS::Endianness::Big);
+ LUS::BinaryReader header = Decompressor::AutoDecode(node, buffer).GetReader();
+ header.SetEndianness(LUS::Endianness::Big);
- auto flags = header.ReadInt16();
- auto animYTransDivisor = header.ReadInt16();
- auto startFrame = header.ReadInt16();
- auto loopStart = header.ReadInt16();
- auto loopEnd = header.ReadInt16();
- auto unusedBoneCount = header.ReadInt16();
+ auto flags = header.ReadInt16();
+ auto animYTransDivisor = header.ReadInt16();
+ auto startFrame = header.ReadInt16();
+ auto loopStart = header.ReadInt16();
+ auto loopEnd = header.ReadInt16();
+ auto unusedBoneCount = header.ReadInt16();
auto valuesAddr = header.ReadUInt32();
auto indexAddr = header.ReadUInt32();
- auto length = header.ReadUInt32();
+ auto length = header.ReadUInt32();
size_t indexLength = ANIMINDEX_COUNT(unusedBoneCount);
LUS::BinaryReader indices = Decompressor::AutoDecode(indexAddr, indexLength * sizeof(uint16_t), buffer).GetReader();
@@ -55,9 +55,9 @@ std::optional<std::shared_ptr<IParsedData>> SM64::AnimationFactory::parse(std::v
indicesData.push_back(indices.ReadInt16());
}
- size_t valuesSize = (indexAddr - valuesAddr);
+ size_t valuesSize = (indexAddr - valuesAddr);
LUS::BinaryReader values = Decompressor::AutoDecode(valuesAddr, valuesSize, buffer).GetReader();
- values.SetEndianness(LUS::Endianness::Big);
+ values.SetEndianness(LUS::Endianness::Big);
std::vector<uint16_t> valuesData;
for (size_t i = 0; i < valuesSize / sizeof(uint16_t); i++) {
valuesData.push_back(values.ReadUInt16());