- fix screenjob.cpp PlayVideo() returning after stripping drive letter without checking whether it was able to re-open the file thereafter successfully.

Fixes #128.
This commit is contained in:
Mitchell Richters 2020-08-10 21:15:17 +10:00
parent d3df4e580c
commit 4c74c172e3

View file

@ -341,9 +341,12 @@ DScreenJob* PlayVideo(const char* filename, const AnimSound* ans, const int* fra
filename += 3; filename += 3;
fr = fileSystem.OpenFileReader(filename); fr = fileSystem.OpenFileReader(filename);
} }
if (!fr.isOpen())
{
Printf("%s: Unable to open video\n", filename); Printf("%s: Unable to open video\n", filename);
return nothing(); return nothing();
} }
}
char id[20] = {}; char id[20] = {};
fr.Read(&id, 20); fr.Read(&id, 20);