From 102cd7601726313a1264bdabe68a492c098769c6 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 12 Oct 2025 01:56:43 -0400 Subject: [PATCH] refactor(music): update include path for Hyrule Magic - Changed the include path for Hyrule Magic from "app/zelda3/hyrule_magic.h" to "util/hyrule_magic.h" in tracker.cc. - This adjustment improves the modularity of the codebase by aligning the include structure with the new organization of utility headers. --- src/app/zelda3/music/tracker.cc | 2 +- src/cli/cli.cc | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/app/zelda3/music/tracker.cc b/src/app/zelda3/music/tracker.cc index ce4de26d..f226b382 100644 --- a/src/app/zelda3/music/tracker.cc +++ b/src/app/zelda3/music/tracker.cc @@ -14,7 +14,7 @@ #include #include "app/rom.h" -#include "app/zelda3/hyrule_magic.h" +#include "util/hyrule_magic.h" #include "util/macro.h" namespace yaze { diff --git a/src/cli/cli.cc b/src/cli/cli.cc index 25a32583..f1fb3552 100644 --- a/src/cli/cli.cc +++ b/src/cli/cli.cc @@ -11,6 +11,11 @@ namespace yaze { namespace cli { +// Forward declaration +namespace handlers { +absl::Status HandleAgentCommand(const std::vector& args); +} + ModernCLI::ModernCLI() { // Commands are now managed by CommandRegistry singleton // SetupCommands() is no longer needed @@ -58,8 +63,7 @@ absl::Status ModernCLI::Run(int argc, char* argv[]) { // Special case: "agent" command routes to HandleAgentCommand if (args[0] == "agent") { std::vector agent_args(args.begin() + 1, args.end()); - std::cout << "Agent args: " << absl::StrJoin(agent_args, " ") << std::endl; - args = agent_args; + return handlers::HandleAgentCommand(agent_args); } // Use CommandRegistry for unified command execution