- 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
1 changed files with 5 additions and 2 deletions

View File

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