From 97b202955c51d288cade045227668e06f748b1bf Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 10 Aug 2020 22:11:00 +0200 Subject: [PATCH] - strip the drive letter off WAV names for cutscenes. --- source/blood/src/credits.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/blood/src/credits.cpp b/source/blood/src/credits.cpp index 9c3ce2fd1..2cb2ec221 100644 --- a/source/blood/src/credits.cpp +++ b/source/blood/src/credits.cpp @@ -111,6 +111,11 @@ void playSmk(const char *smk, const char *wav, int wavid, CompletionFunc func) FString wavv = wav; FixPathSeperator(wavv); id = S_FindSound(wavv); + // Strip the drive letter and retry. + if (id <= 0 && wavv.Len() > 3 && wavv[1] == ':' && isalpha(wavv[0]) && wavv[2] == '/') + { + id = S_FindSound(wavv.GetChars() + 3); + } } FString smkk = smk; FixPathSeperator(smkk);