diff --git a/src/factories/LightsFactory.cpp b/src/factories/LightsFactory.cpp index d6aa580f..cb5d9b58 100644 --- a/src/factories/LightsFactory.cpp +++ b/src/factories/LightsFactory.cpp @@ -106,18 +106,8 @@ ExportResult LightsCodeExporter::Export(std::ostream &write, std::shared_ptr raw, std::string& entryName, YAML::Node &node, std::string* replacement ) { auto light = std::static_pointer_cast(raw)->mLights; auto writer = LUS::BinaryWriter(); - auto size = sizeof(light.l) / sizeof(LightRaw); - WriteHeader(writer, Torch::ResourceType::Lights, 0); - - writer.Write(reinterpret_cast(light.a.l.col), 3); - - writer.Write(static_cast(size)); - - for(size_t i = 0; i < size; i++) { - writer.Write(reinterpret_cast(light.l[i].l.col), 3); - writer.Write(reinterpret_cast(light.l[i].l.dir), 3); - } + writer.Write(reinterpret_cast(&light), sizeof(Lights1Raw)); writer.Finish(write); writer.Close(); return std::nullopt; @@ -127,33 +117,7 @@ std::optional> LightsFactory::parse(std::vector(lights); } diff --git a/src/factories/sm64/AnimationFactory.cpp b/src/factories/sm64/AnimationFactory.cpp index 3d9edf6b..4b6b5e45 100644 --- a/src/factories/sm64/AnimationFactory.cpp +++ b/src/factories/sm64/AnimationFactory.cpp @@ -77,7 +77,6 @@ std::optional> SM64::AnimationFactory::parse(std::v std::vector indicesData; for (size_t i = 0; i < indexLength; i++) { indicesData.push_back(indices.ReadUInt16()); - SPDLOG_INFO("Index: {}", indicesData.back()); } LUS::BinaryReader values = LUS::BinaryReader(mainData + valuesAddr, valuesSize); @@ -85,7 +84,6 @@ std::optional> SM64::AnimationFactory::parse(std::v std::vector valuesData; for (size_t i = 0; i < valuesSize / sizeof(int16_t); i++) { valuesData.push_back(values.ReadInt16()); - SPDLOG_INFO("Value: {}", valuesData.back()); } return std::make_shared(flags, animYTransDivisor, startFrame, loopStart, loopEnd, unusedBoneCount, length, indicesData, valuesData);