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)
This commit is contained in:
sitton76
2025-05-25 01:12:24 -05:00
committed by GitHub
parent cb19785b51
commit d3289f7352
+2 -2
View File
@@ -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();