- fixed Blood cutscene playback.

Some merge from upstream must have broken the file name correction.
This commit is contained in:
Christoph Oelckers 2019-12-30 21:36:08 +01:00
parent 2c35f87925
commit 91a4e0a005

View file

@ -20,12 +20,15 @@
#include "FileStream.h" #include "FileStream.h"
#include "filesystem/filesystem.h" #include "filesystem/filesystem.h"
#include <stdlib.h> #include <stdlib.h>
#include "cmdlib.h"
namespace SmackerCommon { namespace SmackerCommon {
bool FileStream::Open(const char *fileName) bool FileStream::Open(const char *fileName)
{ {
file = fileSystem.OpenFileReader(fileName, 0); FString fixedname = fileName;
FixPathSeperator(fixedname);
file = fileSystem.OpenFileReader(fixedname, 0);
if (!file.isOpen()) if (!file.isOpen())
{ {
// log error // log error