From 3973cf71a79719289dfeac120cec70cd8f386e53 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Tue, 22 Nov 2016 21:40:36 +0100 Subject: [PATCH] [FastFiles] Correctly load the mod.ff --- src/Components/Modules/FastFiles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/FastFiles.cpp b/src/Components/Modules/FastFiles.cpp index b459028c..d5b3d953 100644 --- a/src/Components/Modules/FastFiles.cpp +++ b/src/Components/Modules/FastFiles.cpp @@ -209,7 +209,7 @@ namespace Components path.append(".ff"); } - return std::ifstream(path.data()).good(); + return Utils::IO::FileExists(path); } bool FastFiles::Ready() @@ -225,7 +225,7 @@ namespace Components std::string modDir = Dvar::Var("fs_game").get(); if (file == "mod"s || file == "mod.ff"s || !modDir.empty()) { - paths.push_back(fmt::sprintf("zone\\%s\\", modDir.data())); + paths.push_back(fmt::sprintf("%s\\", modDir.data())); } Utils::Merge(&paths, FastFiles::ZonePaths);