diff options
| author | Jeod <47716344+JeodC@users.noreply.github.com> | 2026-06-22 07:28:04 -0400 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2026-06-29 18:48:27 -0600 |
| commit | b42a4fa16f7a75e2a96a7c107e6359c80b685863 (patch) | |
| tree | ef37e07386cfadfc75bbe586038864e407730ac0 /src/Companion.cpp | |
| parent | ec17e8fe49b7bcd9b181e5d0feb05da660c6f061 (diff) | |
BK64: Add BB romhack support
Diffstat (limited to 'src/Companion.cpp')
| -rw-r--r-- | src/Companion.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp index e8ca2c0..40899ec 100644 --- a/src/Companion.cpp +++ b/src/Companion.cpp @@ -98,6 +98,7 @@ #ifdef BK64_SUPPORT #include "factories/bk64/AnimFactory.h" #include "factories/bk64/BKAssetFactory.h" +#include "factories/bk64/ConfigFactory.h" #include "factories/bk64/DemoInputFactory.h" #include "factories/bk64/DialogFactory.h" #include "factories/bk64/GeoLayoutFactory.h" @@ -1193,8 +1194,17 @@ void Companion::Process(std::atomic<size_t>& assetCount) { this->gCartridge->Initialize(); if (!config[this->gCartridge->GetHash()]) { - SPDLOG_ERROR("No config found for {}", this->gCartridge->GetHash()); - return; + bool synthesized = false; +#ifdef BK64_SUPPORT + if (this->gRomPath.has_value()) { + synthesized = BK64::TrySynthesizeRomConfig(config, this->gCartridge->GetHash(), this->gRomPath.value(), + this->gRomData); + } +#endif + if (!synthesized) { + SPDLOG_ERROR("No config found for {}", this->gCartridge->GetHash()); + return; + } } this->gConfig.parseMode = ParseMode::Default; |
