summaryrefslogtreecommitdiffstats
path: root/src/frontend_common
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2024-01-19 00:17:28 +0100
committerLiam <byteslice@airmail.cc>2024-01-25 22:43:53 +0100
commit975deb7528cd98460528553f6a9162bfbcd6cab1 (patch)
treed1419c7b50f428a3b0e3de15ca641887dcd94aed /src/frontend_common
parentfs: Add path class (diff)
downloadyuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar.gz
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar.bz2
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar.lz
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar.xz
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar.zst
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.zip
Diffstat (limited to 'src/frontend_common')
-rw-r--r--src/frontend_common/content_manager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/frontend_common/content_manager.h b/src/frontend_common/content_manager.h
index fc359b494..f3efe3465 100644
--- a/src/frontend_common/content_manager.h
+++ b/src/frontend_common/content_manager.h
@@ -159,7 +159,7 @@ inline InstallResult InstallNSP(Core::System& system, FileSys::VfsFilesystem& vf
};
std::shared_ptr<FileSys::NSP> nsp;
- FileSys::VirtualFile file = vfs.OpenFile(filename, FileSys::Mode::Read);
+ FileSys::VirtualFile file = vfs.OpenFile(filename, FileSys::OpenMode::Read);
if (boost::to_lower_copy(file->GetName()).ends_with(std::string("nsp"))) {
nsp = std::make_shared<FileSys::NSP>(file);
if (nsp->IsExtractedType()) {
@@ -224,7 +224,8 @@ inline InstallResult InstallNCA(FileSys::VfsFilesystem& vfs, const std::string&
return true;
};
- const auto nca = std::make_shared<FileSys::NCA>(vfs.OpenFile(filename, FileSys::Mode::Read));
+ const auto nca =
+ std::make_shared<FileSys::NCA>(vfs.OpenFile(filename, FileSys::OpenMode::Read));
const auto id = nca->GetStatus();
// Game updates necessary are missing base RomFS
@@ -345,8 +346,8 @@ inline std::vector<std::string> VerifyInstalledContents(
inline GameVerificationResult VerifyGameContents(
Core::System& system, const std::string& game_path,
const std::function<bool(size_t, size_t)>& callback) {
- const auto loader =
- Loader::GetLoader(system, system.GetFilesystem()->OpenFile(game_path, FileSys::Mode::Read));
+ const auto loader = Loader::GetLoader(
+ system, system.GetFilesystem()->OpenFile(game_path, FileSys::OpenMode::Read));
if (loader == nullptr) {
return GameVerificationResult::NotImplemented;
}