From aaae11b67de3ba8075632dbf75216bddb74af6b7 Mon Sep 17 00:00:00 2001 From: Struma Date: Fri, 25 Dec 2020 20:20:17 -0500 Subject: [PATCH] Normalize paths during calls to FileSystem::openReadRaw --- src/filesystem/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesystem/filesystem.cpp b/src/filesystem/filesystem.cpp index 862b55b5..c2b2ccf0 100644 --- a/src/filesystem/filesystem.cpp +++ b/src/filesystem/filesystem.cpp @@ -626,7 +626,7 @@ void FileSystem::openRead(OpenHandler &handler, const char *filename) { void FileSystem::openReadRaw(SDL_RWops &ops, const char *filename, bool freeOnClose) { - PHYSFS_File *handle = PHYSFS_openRead(desensitize(filename)); + PHYSFS_File *handle = PHYSFS_openRead(normalize(filename, 0, 0).c_str()); // assert(handle); if (!handle)