summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorGravatar FearlessTobi2024-01-18 21:31:41 +0100
committerGravatar Liam2024-01-25 16:42:05 -0500
commitcc09c265e15e9598844482a8b5a22b12650b3f1b (patch)
treeefca7a933c1a599e04a0201e1657717d755a3248 /src/core/core.cpp
parentvfs: Move vfs files to their own directory (diff)
downloadyuzu-cc09c265e15e9598844482a8b5a22b12650b3f1b.tar.gz
yuzu-cc09c265e15e9598844482a8b5a22b12650b3f1b.tar.xz
yuzu-cc09c265e15e9598844482a8b5a22b12650b3f1b.zip
fs: Replace Mode enum by OpenMode enum
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 8f9dd5efa..1b412ac98 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -21,7 +21,7 @@
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"
@@ -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
136struct System::Impl { 136struct System::Impl {