27 LOG_INFO(
"App",
"Initializing Application instance...");
32 LOG_INFO(
"App",
"Initializing gRPC automation services...");
33 canvas_automation_service_ = std::make_unique<CanvasAutomationServiceImpl>();
34 grpc_server_ = std::make_unique<YazeGRPCServer>();
39 auto status = grpc_server_->Initialize(
45 canvas_automation_service_.get()
49 status = grpc_server_->StartAsync();
51 LOG_ERROR(
"App",
"Failed to start gRPC server: %s", std::string(status.message()).c_str());
56 LOG_ERROR(
"App",
"Failed to initialize gRPC server: %s", std::string(status.message()).c_str());
65 if (canvas_automation_service_) {
66 controller_->SetCanvasAutomationService(canvas_automation_service_.get());
78 LOG_INFO(
"App",
"Found pending ROM load: %s", start_path.c_str());
79 }
else if (!start_path.empty()) {
80 LOG_INFO(
"App",
"Using configured startup ROM: %s", start_path.c_str());
82 LOG_INFO(
"App",
"No pending ROM, starting empty.");
85 LOG_INFO(
"App",
"WASM build - ROM loading handled via wasm_bootstrap queue.");
93 LOG_ERROR(
"App",
"Failed to initialize controller: %s", std::string(status.message()).c_str());
95 LOG_INFO(
"App",
"Controller initialized successfully. Active: %s",
controller_->IsActive() ?
"Yes" :
"No");
102 if (!start_path.empty() &&
controller_->editor_manager()) {
109 yaze::app::wasm::SetRomLoadHandler([](std::string path) {