VERY experimental Nintendo Switch 2 emulator
C++
Revert "Merge pull request #5176 from Morph1984/fix-createfile"
Morph9e47a3f7cd38
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cppindex 3b70f7755b..488687ba90 100644--- a/src/core/file_sys/vfs_real.cpp+++ b/src/core/file_sys/vfs_real.cpp@@ -94,13 +94,9 @@ VirtualFile RealVfsFilesystem::OpenFile(std::string_view path_, Mode perms) {VirtualFile RealVfsFilesystem::CreateFile(std::string_view path_, Mode perms) {const auto path = FS::SanitizePath(path_, FS::DirectorySeparator::PlatformDefault);- const auto parent_path = FS::GetParentPath(path);-+ const auto path_fwd = FS::SanitizePath(path, FS::DirectorySeparator::ForwardSlash);if (!FS::Exists(path)) {- if (!FS::CreateDirs(parent_path)) {- return nullptr;- }-+ FS::CreateFullPath(path_fwd);if (!FS::CreateEmptyFile(path)) {return nullptr;}