Skip to content

Commit c078d71

Browse files
committed
use error code variant of current_path
1 parent cbe533c commit c078d71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

UnleashedRecomp/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,8 @@ int main(int argc, char *argv[])
216216
if (!useDefaultWorkingDirectory)
217217
{
218218
// Set the current working directory to the executable's path.
219-
std::filesystem::current_path(os::process::GetExecutablePath().parent_path());
219+
std::error_code ec;
220+
std::filesystem::current_path(os::process::GetExecutablePath().parent_path(), ec);
220221
}
221222

222223
Config::Load();

0 commit comments

Comments
 (0)