Updated linux SetWorkingDirectory

This commit is contained in:
Sajid 2025-01-28 17:07:58 +06:00
parent 43a384fa74
commit 857565b7d6

View file

@ -31,7 +31,7 @@ std::filesystem::path os::process::GetWorkingDirectory()
bool os::process::SetWorkingDirectory(const std::filesystem::path& path) bool os::process::SetWorkingDirectory(const std::filesystem::path& path)
{ {
return chdir(path.u8string().c_str()) == 0; return chdir(path.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)