aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/player_v3m.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/scumm/player_v3m.cpp')
-rw-r--r--engines/scumm/player_v3m.cpp18
1 files changed, 6 insertions, 12 deletions
diff --git a/engines/scumm/player_v3m.cpp b/engines/scumm/player_v3m.cpp
index 6a675f2ca8..35d2aaac89 100644
--- a/engines/scumm/player_v3m.cpp
+++ b/engines/scumm/player_v3m.cpp
@@ -118,24 +118,18 @@ static const char *loomFileNames[] = {
bool Player_V3M::checkMusicAvailable() {
Common::MacResManager resource;
- bool found = false;
for (int i = 0; i < ARRAYSIZE(loomFileNames); i++) {
if (resource.exists(loomFileNames[i])) {
- found = true;
- break;
+ return true;
}
}
- if (!found) {
- GUI::MessageDialog dialog(_(
- "Could not find the 'Loom' Macintosh executable to read the\n"
- "instruments from. Music will be disabled."), _("OK"));
- dialog.runModal();
- return false;
- }
-
- return true;
+ GUI::MessageDialog dialog(_(
+ "Could not find the 'Loom' Macintosh executable to read the\n"
+ "instruments from. Music will be disabled."), _("OK"));
+ dialog.runModal();
+ return false;
}
bool Player_V3M::loadMusic(const byte *ptr) {