From f0c70f855a892ca7dc21cee4b4037dad983adb8f Mon Sep 17 00:00:00 2001 From: Lywx Date: Wed, 20 Mar 2024 21:17:11 -0600 Subject: 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 --- src/factories/SampleFactory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/factories/SampleFactory.cpp') diff --git a/src/factories/SampleFactory.cpp b/src/factories/SampleFactory.cpp index f367a1e..ec88060 100644 --- a/src/factories/SampleFactory.cpp +++ b/src/factories/SampleFactory.cpp @@ -1,6 +1,6 @@ #include "SampleFactory.h" -void SampleBinaryExporter::Export(std::ostream &write, std::shared_ptr raw, std::string& entryName, YAML::Node &node, std::string* replacement ) { +ExportResult SampleBinaryExporter::Export(std::ostream &write, std::shared_ptr raw, std::string& entryName, YAML::Node &node, std::string* replacement ) { auto writer = LUS::BinaryWriter(); auto sample = std::static_pointer_cast(raw)->mSample; @@ -30,6 +30,7 @@ void SampleBinaryExporter::Export(std::ostream &write, std::shared_ptr> SampleFactory::parse(std::vector& buffer, YAML::Node& data) { -- cgit v1.2.3