diff options
| author | Lywx <kiritodev01@gmail.com> | 2024-03-20 21:17:11 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-20 21:17:11 -0600 |
| commit | f0c70f855a892ca7dc21cee4b4037dad983adb8f (patch) | |
| tree | f15cc271b00166476a2e7b780e50d911770a7316 /src/factories/sm64/AnimationFactory.cpp | |
| parent | 8465919ab7aba6cfde7d25ad1731673e5da01642 (diff) | |
Auto pad and overlap detection (#47)
* Fully implemented pad and overlap detection
* Cleaned code, fixed pad generation and added alignment
* Added debug size on pads
Diffstat (limited to 'src/factories/sm64/AnimationFactory.cpp')
| -rw-r--r-- | src/factories/sm64/AnimationFactory.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/factories/sm64/AnimationFactory.cpp b/src/factories/sm64/AnimationFactory.cpp index 368de1f..1b4070d 100644 --- a/src/factories/sm64/AnimationFactory.cpp +++ b/src/factories/sm64/AnimationFactory.cpp @@ -1,7 +1,7 @@ #include "AnimationFactory.h" #include "spdlog/spdlog.h" -void SM64::AnimationBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) { +ExportResult SM64::AnimationBinaryExporter::Export(std::ostream &write, std::shared_ptr<IParsedData> raw, std::string& entryName, YAML::Node &node, std::string* replacement ) { auto writer = LUS::BinaryWriter(); const auto anim = std::static_pointer_cast<AnimationData>(raw); @@ -25,6 +25,7 @@ void SM64::AnimationBinaryExporter::Export(std::ostream &write, std::shared_ptr< } writer.Finish(write); + return std::nullopt; } std::optional<std::shared_ptr<IParsedData>> SM64::AnimationFactory::parse(std::vector<uint8_t>& buffer, YAML::Node& node) { |
