summaryrefslogtreecommitdiff
path: root/src/factories/AudioHeaderFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/factories/AudioHeaderFactory.h')
-rw-r--r--src/factories/AudioHeaderFactory.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/factories/AudioHeaderFactory.h b/src/factories/AudioHeaderFactory.h
index 4726068..3170028 100644
--- a/src/factories/AudioHeaderFactory.h
+++ b/src/factories/AudioHeaderFactory.h
@@ -2,6 +2,11 @@
#include "BaseFactory.h"
+class AudioAIFCExporter : public BaseExporter {
+public:
+ void Export(std::ostream& write, std::shared_ptr<IParsedData> data, std::string& entryName, YAML::Node& node, std::string* replacement) override;
+};
+
class AudioHeaderFactory : public BaseFactory {
public:
std::optional<std::shared_ptr<IParsedData>> parse(std::vector<uint8_t>& buffer, YAML::Node& data) override;
@@ -9,7 +14,9 @@ public:
return std::nullopt;
}
inline std::unordered_map<ExportType, std::shared_ptr<BaseExporter>> GetExporters() override {
- return {};
+ return {
+ REGISTER(Modding, AudioAIFCExporter)
+ };
}
- bool SupportModdedAssets() override { return false; }
+ bool SupportModdedAssets() override { return true; }
}; \ No newline at end of file