diff options
| author | sitton76 <58642183+sitton76@users.noreply.github.com> | 2025-05-25 01:12:24 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-25 03:12:24 -0300 |
| commit | d3289f735266d6679521f2e79cd257ece94b7a89 (patch) | |
| tree | 329631fed969be7c10777937d8cf02c3bd17ef38 | |
| parent | cb19785b51698185a688e17ba1a34c7889195bdb (diff) | |
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)
| -rw-r--r-- | src/port/ui/ImguiUI.cpp | 4 |
1 files 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(); |
