From 2b6013ad26b91408122bfa8525fdba105509cc01 Mon Sep 17 00:00:00 2001 From: Sajid Date: Tue, 28 Jan 2025 15:05:09 +0600 Subject: [PATCH] Linux SetWorkingDirectory --- UnleashedRecomp/os/linux/process_linux.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/UnleashedRecomp/os/linux/process_linux.cpp b/UnleashedRecomp/os/linux/process_linux.cpp index 3cd37835..c7de2ac6 100644 --- a/UnleashedRecomp/os/linux/process_linux.cpp +++ b/UnleashedRecomp/os/linux/process_linux.cpp @@ -29,10 +29,9 @@ std::filesystem::path os::process::GetWorkingDirectory() } } -// TODO 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& args, std::filesystem::path work)