diff options
| author | 2024-01-26 09:55:25 -0500 | |
|---|---|---|
| committer | 2024-01-26 09:55:25 -0500 | |
| commit | 55482ab5dce463d5014498b006c18a90d0d004e6 (patch) | |
| tree | b343faa9cadc692265efb4b6b88e157c97ef76d2 /src/core/core.cpp | |
| parent | Merge pull request #12796 from t895/controller-optimizations (diff) | |
| parent | Address review comments and fix compilation problems (diff) | |
| download | yuzu-55482ab5dce463d5014498b006c18a90d0d004e6.tar.gz yuzu-55482ab5dce463d5014498b006c18a90d0d004e6.tar.xz yuzu-55482ab5dce463d5014498b006c18a90d0d004e6.zip | |
Merge pull request #12707 from FearlessTobi/fs-housekeeping
fs: Various cleanups & add path class for later use
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index dd9de948c..1b412ac98 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -21,13 +21,13 @@ | |||
| 21 | #include "core/debugger/debugger.h" | 21 | #include "core/debugger/debugger.h" |
| 22 | #include "core/device_memory.h" | 22 | #include "core/device_memory.h" |
| 23 | #include "core/file_sys/bis_factory.h" | 23 | #include "core/file_sys/bis_factory.h" |
| 24 | #include "core/file_sys/mode.h" | 24 | #include "core/file_sys/fs_filesystem.h" |
| 25 | #include "core/file_sys/patch_manager.h" | 25 | #include "core/file_sys/patch_manager.h" |
| 26 | #include "core/file_sys/registered_cache.h" | 26 | #include "core/file_sys/registered_cache.h" |
| 27 | #include "core/file_sys/romfs_factory.h" | 27 | #include "core/file_sys/romfs_factory.h" |
| 28 | #include "core/file_sys/savedata_factory.h" | 28 | #include "core/file_sys/savedata_factory.h" |
| 29 | #include "core/file_sys/vfs_concat.h" | 29 | #include "core/file_sys/vfs/vfs_concat.h" |
| 30 | #include "core/file_sys/vfs_real.h" | 30 | #include "core/file_sys/vfs/vfs_real.h" |
| 31 | #include "core/gpu_dirty_memory_manager.h" | 31 | #include "core/gpu_dirty_memory_manager.h" |
| 32 | #include "core/hle/kernel/k_memory_manager.h" | 32 | #include "core/hle/kernel/k_memory_manager.h" |
| 33 | #include "core/hle/kernel/k_process.h" | 33 | #include "core/hle/kernel/k_process.h" |
| @@ -102,7 +102,7 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, | |||
| 102 | Common::SplitPath(path, &dir_name, &filename, nullptr); | 102 | Common::SplitPath(path, &dir_name, &filename, nullptr); |
| 103 | 103 | ||
| 104 | if (filename == "00") { | 104 | if (filename == "00") { |
| 105 | const auto dir = vfs->OpenDirectory(dir_name, FileSys::Mode::Read); | 105 | const auto dir = vfs->OpenDirectory(dir_name, FileSys::OpenMode::Read); |
| 106 | std::vector<FileSys::VirtualFile> concat; | 106 | std::vector<FileSys::VirtualFile> concat; |
| 107 | 107 | ||
| 108 | for (u32 i = 0; i < 0x10; ++i) { | 108 | for (u32 i = 0; i < 0x10; ++i) { |
| @@ -127,10 +127,10 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, | |||
| 127 | } | 127 | } |
| 128 | 128 | ||
| 129 | if (Common::FS::IsDir(path)) { | 129 | if (Common::FS::IsDir(path)) { |
| 130 | return vfs->OpenFile(path + "/main", FileSys::Mode::Read); | 130 | return vfs->OpenFile(path + "/main", FileSys::OpenMode::Read); |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | return vfs->OpenFile(path, FileSys::Mode::Read); | 133 | return vfs->OpenFile(path, FileSys::OpenMode::Read); |
| 134 | } | 134 | } |
| 135 | 135 | ||
| 136 | struct System::Impl { | 136 | struct System::Impl { |