From 804d46a2df8d54885ce339f868cde6bdce0fff0a Mon Sep 17 00:00:00 2001 From: inspectredc <78732756+inspectredc@users.noreply.github.com> Date: Tue, 7 Oct 2025 03:28:44 +0100 Subject: EAD Limb and Animation Factories (#200) Co-authored-by: Lywx --- src/Companion.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Companion.cpp') 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()); this->RegisterFactory("FZX:COURSE", std::make_shared()); this->RegisterFactory("FZX:GHOST", std::make_shared()); + this->RegisterFactory("FZX:LIMB", std::make_shared()); this->RegisterFactory("FZX:SEQUENCE", std::make_shared()); this->RegisterFactory("FZX:SOUNDFONT", std::make_shared()); #endif @@ -1620,6 +1624,7 @@ std::optional Companion::AddAsset(YAML::Node asset) { if(!asset["offset"] || !asset["type"]) { return std::nullopt; } + asset["offset"] = PatchVirtualAddr(GetSafeNode(asset, "offset")); const auto type = GetTypeNode(asset); const auto offset = GetSafeNode(asset, "offset"); const auto symbol = GetSafeNode(asset, "symbol", ""); -- cgit v1.2.3