From efada6a0ea6d3ebbf2007de232cbe51ba6c259f8 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Sat, 25 Mar 2023 06:16:49 -0700 Subject: [PATCH] Config: Convert some std::filesystem to FHU --- External/FEXCore/Source/Interface/Config/Config.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/External/FEXCore/Source/Interface/Config/Config.cpp b/External/FEXCore/Source/Interface/Config/Config.cpp index 62fe92777..d8738fddf 100644 --- a/External/FEXCore/Source/Interface/Config/Config.cpp +++ b/External/FEXCore/Source/Interface/Config/Config.cpp @@ -477,8 +477,7 @@ namespace JSON { else if (!PathName().empty()) { // If the filesystem doesn't exist then let's see if it exists in the fex-emu folder fextl::string NamedRootFS = GetDataDirectory() + "RootFS/" + PathName(); - std::error_code ec{}; - if (std::filesystem::exists(NamedRootFS, ec)) { + if (FHU::Filesystem::Exists(NamedRootFS)) { FEXCore::Config::EraseSet(FEXCore::Config::CONFIG_ROOTFS, NamedRootFS); } } @@ -501,8 +500,7 @@ namespace JSON { else if (!PathName().empty()) { // If the filesystem doesn't exist then let's see if it exists in the fex-emu folder fextl::string NamedConfig = GetDataDirectory() + "ThunkConfigs/" + PathName(); - std::error_code ec{}; - if (std::filesystem::exists(NamedConfig, ec)) { + if (FHU::Filesystem::Exists(NamedConfig)) { FEXCore::Config::EraseSet(FEXCore::Config::CONFIG_THUNKCONFIG, NamedConfig); } }