mirror of
https://github.com/HarbourMasters/Starship
synced 2026-05-23 06:54:39 -04:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user