use error code variant of current_path

This commit is contained in:
DeaTh-G 2025-03-22 07:32:41 +01:00
parent cbe533c538
commit c078d714c8

View file

@ -216,7 +216,8 @@ int main(int argc, char *argv[])
if (!useDefaultWorkingDirectory) if (!useDefaultWorkingDirectory)
{ {
// Set the current working directory to the executable's path. // 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(); Config::Load();