windows std::filesystem fixes

This commit is contained in:
georgemoralis
2024-07-15 14:50:23 +03:00
parent ba0be91c73
commit 0298889131
4 changed files with 11 additions and 11 deletions

View File

@@ -10,12 +10,12 @@ namespace Libraries::LibC {
std::FILE* PS4_SYSV_ABI ps4_fopen(const char* filename, const char* mode) {
auto* mnt = Common::Singleton<Core::FileSys::MntPoints>::Instance();
const auto host_path = mnt->GetHostPath(filename);
const auto host_path = mnt->GetHostPath(filename).string();
FILE* f = std::fopen(host_path.c_str(), mode);
if (f != nullptr) {
LOG_INFO(Lib_LibC, "fopen = {}", host_path.native());
LOG_INFO(Lib_LibC, "fopen = {}", host_path);
} else {
LOG_INFO(Lib_LibC, "fopen can't open = {}", host_path.native());
LOG_INFO(Lib_LibC, "fopen can't open = {}", host_path);
}
return f;
}