mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
fix(libc): build the working directory path without deprecated u8path
This commit is contained in:
1 parent
af7db81e6e
commit
e55144bfe5
1 file changed
+1
-1
@@ -467,7 +467,7 @@ extern "C" int SetWorkingDirectory_nid_no_patch(const char* resolved) {
|
||||
auto& state = Directories();
|
||||
std::lock_guard lock(state.mutex);
|
||||
try {
|
||||
return SetWorkingDirectory(state, std::filesystem::u8path(resolved));
|
||||
return SetWorkingDirectory(state, std::filesystem::path(reinterpret_cast<const char8_t*>(resolved)));
|
||||
} catch (const std::bad_alloc&) {
|
||||
return 12;
|
||||
} catch (const std::filesystem::filesystem_error& error) {
|
||||
|
||||
Reference in new issue
Block a user