summaryrefslogtreecommitdiff
path: root/src/factories/VtxFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/factories/VtxFactory.h')
-rw-r--r--src/factories/VtxFactory.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/factories/VtxFactory.h b/src/factories/VtxFactory.h
index 3ab1f52..75bd906 100644
--- a/src/factories/VtxFactory.h
+++ b/src/factories/VtxFactory.h
@@ -17,23 +17,20 @@ public:
};
class VtxHeaderExporter : 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 VtxBinaryExporter : 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 VtxCodeExporter : 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 VtxFactory : 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(Code, VtxCodeExporter)
@@ -41,5 +38,7 @@ public:
REGISTER(Binary, VtxBinaryExporter)
};
}
- bool SupportModdedAssets() override { return false; }
+ uint32_t GetAlignment() override {
+ return 8;
+ };
}; \ No newline at end of file