refactor(agent): reorganize emulator command handling for gRPC support
- Removed direct inclusion of `emulator_commands.h` in non-gRPC contexts to streamline dependencies. - Updated CMake configuration to conditionally include emulator command sources only when gRPC is enabled, enhancing modularity. - Ensured consistent handling of emulator commands across different components. Benefits: - Improved code organization and maintainability by clarifying the inclusion of gRPC-related features. - Enhanced flexibility in managing command handlers based on compilation flags.
This commit is contained in:
@@ -41,7 +41,6 @@ set(YAZE_AGENT_SOURCES
|
||||
cli/handlers/game/dialogue_commands.cc
|
||||
cli/handlers/game/music_commands.cc
|
||||
cli/handlers/graphics/palette_commands.cc
|
||||
cli/handlers/tools/emulator_commands.cc
|
||||
cli/handlers/game/message_commands.cc
|
||||
cli/handlers/graphics/sprite_commands.cc
|
||||
# ROM commands
|
||||
@@ -56,6 +55,7 @@ if(YAZE_WITH_GRPC)
|
||||
list(APPEND YAZE_AGENT_SOURCES
|
||||
cli/service/agent/agent_control_server.cc
|
||||
cli/service/agent/emulator_service_impl.cc
|
||||
cli/handlers/tools/emulator_commands.cc
|
||||
)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user