summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index c52d87e..231b24c 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -71,8 +71,10 @@
#endif
#ifdef FZERO_SUPPORT
+#include "factories/fzerox/EADAnimationFactory.h"
#include "factories/fzerox/CourseFactory.h"
#include "factories/fzerox/GhostRecordFactory.h"
+#include "factories/fzerox/EADLimbFactory.h"
#include "factories/fzerox/SequenceFactory.h"
#include "factories/fzerox/SoundFontFactory.h"
#endif
@@ -187,8 +189,10 @@ void Companion::Init(const ExportType type) {
#endif
#ifdef FZERO_SUPPORT
+ this->RegisterFactory("FZX:ANIM", std::make_shared<FZX::EADAnimationFactory>());
this->RegisterFactory("FZX:COURSE", std::make_shared<FZX::CourseFactory>());
this->RegisterFactory("FZX:GHOST", std::make_shared<FZX::GhostRecordFactory>());
+ this->RegisterFactory("FZX:LIMB", std::make_shared<FZX::EADLimbFactory>());
this->RegisterFactory("FZX:SEQUENCE", std::make_shared<FZX::SequenceFactory>());
this->RegisterFactory("FZX:SOUNDFONT", std::make_shared<FZX::SoundFontFactory>());
#endif
@@ -1620,6 +1624,7 @@ std::optional<YAML::Node> Companion::AddAsset(YAML::Node asset) {
if(!asset["offset"] || !asset["type"]) {
return std::nullopt;
}
+ asset["offset"] = PatchVirtualAddr(GetSafeNode<uint32_t>(asset, "offset"));
const auto type = GetTypeNode(asset);
const auto offset = GetSafeNode<uint32_t>(asset, "offset");
const auto symbol = GetSafeNode<std::string>(asset, "symbol", "");