mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-25 20:01:58 +00:00
use error code variant of current_path
This commit is contained in:
parent
cbe533c538
commit
c078d714c8
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue