summaryrefslogtreecommitdiff
path: root/src/factories/BlobFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/factories/BlobFactory.h')
-rw-r--r--src/factories/BlobFactory.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/factories/BlobFactory.h b/src/factories/BlobFactory.h
index 9dd1c0d..83d018e 100644
--- a/src/factories/BlobFactory.h
+++ b/src/factories/BlobFactory.h
@@ -3,24 +3,20 @@
#include "BaseFactory.h"
#include "../types/RawBuffer.h"
class BlobBinaryExporter : public BaseExporter {
- void Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
+ ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
};
class BlobCodeExporter : public BaseExporter {
- void Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
+ ExportResult Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
};
class BlobFactory : public BaseFactory {
public:
std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data) override;
- std::optional<std::shared_ptr<IParsedData>> parse_modding(std::vector<uint8_t>& buffer, YAML::Node& data) override {
- return std::nullopt;
- }
inline std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters() override {
return {
REGISTER(Binary, BlobBinaryExporter)
REGISTER(Code, BlobCodeExporter)
};
}
- bool SupportModdedAssets() override { return false; }
}; \ No newline at end of file