diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-12-12 02:23:40 +0100 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2020-12-12 02:24:22 +0100 |
commit | dfee6321cd313ae72019d9717de95e8b3f9a4728 (patch) | |
tree | 5396ad80ba6d9455c95590f2fa666b3253a761d3 /src | |
parent | Revert "Merge pull request #5179 from ReinUsesLisp/fs-path" (diff) | |
download | yuzu-dfee6321cd313ae72019d9717de95e8b3f9a4728.tar yuzu-dfee6321cd313ae72019d9717de95e8b3f9a4728.tar.gz yuzu-dfee6321cd313ae72019d9717de95e8b3f9a4728.tar.bz2 yuzu-dfee6321cd313ae72019d9717de95e8b3f9a4728.tar.lz yuzu-dfee6321cd313ae72019d9717de95e8b3f9a4728.tar.xz yuzu-dfee6321cd313ae72019d9717de95e8b3f9a4728.tar.zst yuzu-dfee6321cd313ae72019d9717de95e8b3f9a4728.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/vfs_real.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp index 3b70f7755..488687ba9 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; } |