mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- strip the drive letter off WAV names for cutscenes.
This commit is contained in:
parent
5165834441
commit
97b202955c
1 changed files with 5 additions and 0 deletions
|
@ -111,6 +111,11 @@ void playSmk(const char *smk, const char *wav, int wavid, CompletionFunc func)
|
||||||
FString wavv = wav;
|
FString wavv = wav;
|
||||||
FixPathSeperator(wavv);
|
FixPathSeperator(wavv);
|
||||||
id = S_FindSound(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;
|
FString smkk = smk;
|
||||||
FixPathSeperator(smkk);
|
FixPathSeperator(smkk);
|
||||||
|
|
Loading…
Reference in a new issue