Skip to content

Commit

Permalink
Improved debug message handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed Jan 19, 2025
1 parent 933e8e8 commit c51775b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions coreengine/audiomanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,6 @@ bool AudioManager::tryAddMusic(QString file, qint64 startPointMs, qint64 endPoin
addMusicToPlaylist(currentPath, startPointMs, endPointMs);
success = true;
}
else
{
CONSOLE_PRINT("Unable to locate music file: " + currentPath, GameConsole::eERROR);
}
}
#endif
return success;
Expand All @@ -592,7 +588,11 @@ void AudioManager::SlotAddMusic(QString file, qint64 startPointMs, qint64 endPoi
bool success = tryAddMusic(file, startPointMs, endPointMs);
if (!success && file.endsWith(".wav") || file.endsWith(".mp3"))
{
tryAddMusic(file.first(file.length() - 4) + ".ogg", startPointMs, endPointMs);
success = tryAddMusic(file.first(file.length() - 4) + ".ogg", startPointMs, endPointMs);
if (!success)
{
CONSOLE_PRINT("Unable to locate music file: " + file, GameConsole::eERROR);
}
}
#endif
}
Expand Down

0 comments on commit c51775b

Please sign in to comment.