Skip to content

Commit

Permalink
check if the vocal files actually exist (#3861)
Browse files Browse the repository at this point in the history
Co-authored-by: Kolo <[email protected]>
  • Loading branch information
KoloInDaCrib and KoloInDaCrib authored Jan 17, 2025
1 parent a3e2373 commit dfe02ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/funkin/play/song/Song.hx
Original file line number Diff line number Diff line change
Expand Up @@ -955,12 +955,14 @@ class SongDifficulty
// Add player vocals.
for (playerVoice in playerVoiceList)
{
if (!Assets.exists(playerVoice)) continue;
result.addPlayerVoice(FunkinSound.load(playerVoice));
}

// Add opponent vocals.
for (opponentVoice in opponentVoiceList)
{
if (!Assets.exists(opponentVoice)) continue;
result.addOpponentVoice(FunkinSound.load(opponentVoice));
}

Expand Down

0 comments on commit dfe02ec

Please sign in to comment.