From b5474382b78bbffd2af65dcadd5274279738cf5b Mon Sep 17 00:00:00 2001 From: Eshed Date: Tue, 27 Sep 2016 20:11:30 +0300 Subject: [PATCH] fix #5357 --- rts/System/FileSystem/FileHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rts/System/FileSystem/FileHandler.cpp b/rts/System/FileSystem/FileHandler.cpp index 001e3293325..8c094221da7 100644 --- a/rts/System/FileSystem/FileHandler.cpp +++ b/rts/System/FileSystem/FileHandler.cpp @@ -113,8 +113,8 @@ bool CFileHandler::TryReadFromVFS(const string& fileName, int section) void CFileHandler::Open(const string& fileName, const string& modes) { this->fileName = fileName; -#ifndef TOOLS for (char c: modes) { +#ifndef TOOLS CVFSHandler::Section section = CVFSHandler::GetModeSection(c); if ((section != CVFSHandler::Section::Error) && TryReadFromVFS(fileName, section)) break; @@ -122,10 +122,10 @@ void CFileHandler::Open(const string& fileName, const string& modes) if ((c == SPRING_VFS_RAW[0]) && TryReadFromRawFS(fileName)) break; +#endif if ((c == SPRING_VFS_PWD[0]) && TryReadFromPWD(fileName)) break; } -#endif }