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();