From 3f11f4aea0dda5f6a9fe0b7cbbdfcba3bee07bc2 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Tue, 2 Apr 2024 09:00:10 -0600 Subject: [PATCH] Fixed indentation --- src/factories/sm64/AnimationFactory.cpp | 22 +++++++++++----------- 1 file 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> SM64::AnimationFactory::parse(std::vector& 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> 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 valuesData; for (size_t i = 0; i < valuesSize / sizeof(uint16_t); i++) { valuesData.push_back(values.ReadUInt16());