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/main.cpp | |
| parent | ec17e8fe49b7bcd9b181e5d0feb05da660c6f061 (diff) | |
BK64: Add BB romhack support
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 030eb42..0beffa5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,9 @@ #include <iostream> #include "CLI11.hpp" #include "Companion.h" +#ifdef BK64_SUPPORT +#include "factories/bk64/ConfigFactory.h" +#endif Companion* Companion::Instance; @@ -140,6 +143,21 @@ int main(int argc, char* argv[]) { } }); +#ifdef BK64_SUPPORT + /* Emit per-slot SHA-1s of the BK64 asset table */ + std::string hashesOut; + const auto hashes = app.add_subcommand( + "hashes", "Hashes - Emit per-slot SHA-1 of BK64 asset table for v1.0 baseline\n"); + + hashes->add_option("<baserom.z64>", filename, "")->required()->check(CLI::ExistingFile); + hashes->add_option("-o,--output", hashesOut, "Output yaml path (default: hashes.yaml in cwd)"); + + hashes->parse_complete_callback([&] { + const std::filesystem::path outPath = hashesOut.empty() ? "hashes.yaml" : hashesOut; + BK64::EmitAssetHashes(filename, outPath); + }); +#endif + /* Generate modding files */ const auto modding_root = app.add_subcommand("modding", "Modding - Generates modding files like png\n"); const auto modding_import = |
