mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Linux SetWorkingDirectory
This commit is contained in:
parent
d0509e0890
commit
2b6013ad26
1 changed files with 1 additions and 2 deletions
|
|
@ -29,10 +29,9 @@ std::filesystem::path os::process::GetWorkingDirectory()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO
|
|
||||||
bool os::process::SetWorkingDirectory(const std::filesystem::path& path)
|
bool os::process::SetWorkingDirectory(const std::filesystem::path& path)
|
||||||
{
|
{
|
||||||
return chdir(path.c_str()) == 0;
|
return chdir(path.u8string().c_str()) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool os::process::StartProcess(const std::filesystem::path& path, const std::vector<std::string>& args, std::filesystem::path work)
|
bool os::process::StartProcess(const std::filesystem::path& path, const std::vector<std::string>& args, std::filesystem::path work)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue