From c23db5b7465ccccef3ee663eef639cb0d75ccd28 Mon Sep 17 00:00:00 2001 From: Dario Date: Sun, 15 Dec 2024 11:50:52 -0300 Subject: [PATCH] Replace CreateDirectoryA with Unicode version. --- UnleashedRecomp/kernel/xam.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/UnleashedRecomp/kernel/xam.cpp b/UnleashedRecomp/kernel/xam.cpp index 18225973..2d6ba9d3 100644 --- a/UnleashedRecomp/kernel/xam.cpp +++ b/UnleashedRecomp/kernel/xam.cpp @@ -316,7 +316,10 @@ SWA_API uint32_t XamContentCreateEx(DWORD dwUserIndex, LPCSTR szRootName, const } XamRegisterContent(*pContentData, root); - CreateDirectoryA(root.c_str(), nullptr); + + std::error_code ec; + std::filesystem::create_directory(std::u8string_view((const char8_t*)(root.c_str())), ec); + XamRootCreate(szRootName, root); } else