From c078d714c8d43ce7060f59abe0fd7cb811e737e9 Mon Sep 17 00:00:00 2001 From: DeaTh-G Date: Sat, 22 Mar 2025 07:32:41 +0100 Subject: [PATCH] use error code variant of current_path --- UnleashedRecomp/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UnleashedRecomp/main.cpp b/UnleashedRecomp/main.cpp index 81feb765..dad42a03 100644 --- a/UnleashedRecomp/main.cpp +++ b/UnleashedRecomp/main.cpp @@ -216,7 +216,8 @@ int main(int argc, char *argv[]) if (!useDefaultWorkingDirectory) { // Set the current working directory to the executable's path. - std::filesystem::current_path(os::process::GetExecutablePath().parent_path()); + std::error_code ec; + std::filesystem::current_path(os::process::GetExecutablePath().parent_path(), ec); } Config::Load();