mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-27 12:51:42 +00:00
Replace CreateDirectoryA with Unicode version.
This commit is contained in:
parent
a6c9869671
commit
c23db5b746
1 changed files with 4 additions and 1 deletions
|
|
@ -316,7 +316,10 @@ SWA_API uint32_t XamContentCreateEx(DWORD dwUserIndex, LPCSTR szRootName, const
|
||||||
}
|
}
|
||||||
|
|
||||||
XamRegisterContent(*pContentData, root);
|
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);
|
XamRootCreate(szRootName, root);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue