[App] Remove ImGui injection in UI process

This commit is contained in:
Herman S.
2025-10-22 00:29:40 +09:00
parent 97a32805fd
commit ef5d527c1e
2 changed files with 6 additions and 5 deletions
+2 -3
View File
@@ -600,9 +600,8 @@ void EmulatorApp::EmulatorThread(bool is_game_process) {
// UI process: Minimal setup for profiles/GPD only
if (!is_game_process) {
// Initialize just enough for profiles: kernel state with XAM module
X_STATUS result = emulator_->Setup(emulator_window_->window(),
emulator_window_->imgui_drawer(), false,
nullptr, nullptr, nullptr);
X_STATUS result = emulator_->Setup(emulator_window_->window(), nullptr,
false, nullptr, nullptr, nullptr);
if (XFAILED(result)) {
XELOGE("Failed to setup minimal emulator for UI: {:08X}", result);
app_context().RequestDeferredQuit();
+4 -2
View File
@@ -291,8 +291,10 @@ X_STATUS Emulator::Setup(
return result;
}
// Add inputSystem to UI
imgui_drawer_->LoadInputSystem(input_system_.get());
// Add inputSystem to UI (if imgui is enabled)
if (imgui_drawer_) {
imgui_drawer_->LoadInputSystem(input_system_.get());
}
XELOGI("{}: Initializing VFS...", __func__);
// Bring up the virtual filesystem used by the kernel.