From d3289f735266d6679521f2e79cd257ece94b7a89 Mon Sep 17 00:00:00 2001 From: sitton76 <58642183+sitton76@users.noreply.github.com> Date: Sun, 25 May 2025 01:12:24 -0500 Subject: [PATCH] JP/EU ROM selection closes game if no ROM selected. (#201) * Added else state to close the game if no rom is found when attempting to extact EU/JP assets. * Did it properly(confirmed on Linux) --- src/port/ui/ImguiUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp index 61c3f7fd..be909fc6 100644 --- a/src/port/ui/ImguiUI.cpp +++ b/src/port/ui/ImguiUI.cpp @@ -320,10 +320,10 @@ void DrawSettingsMenu(){ }; } else { if (UIWidgets::Button("Install JP/EU Audio")) { - if (GameEngine::GenAssetFile()){ + if (GameEngine::GenAssetFile(false)){ GameEngine::ShowMessage("Success", "Audio assets installed. Changes will be applied on the next startup.", SDL_MESSAGEBOX_INFORMATION); - Ship::Context::GetInstance()->GetWindow()->Close(); } + Ship::Context::GetInstance()->GetWindow()->Close(); } } ImGui::EndMenu();