diff options
| author | inspectredc <78732756+inspectredc@users.noreply.github.com> | 2025-10-07 03:28:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-06 20:28:44 -0600 |
| commit | 804d46a2df8d54885ce339f868cde6bdce0fff0a (patch) | |
| tree | 5870b44fb5c2d48ed1464828ee08244e30b34a2e /src/Companion.cpp | |
| parent | a50138b71ad0b3b1fdd01cbededeb0f9e900134c (diff) | |
EAD Limb and Animation Factories (#200)
Co-authored-by: Lywx <kiritodev01@gmail.com>
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 5 |
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", ""); |
