summaryrefslogtreecommitdiff
path: root/src/frontend_common
diff options
context:
space:
mode:
authorGravatar FearlessTobi2024-01-19 00:17:28 +0100
committerGravatar Liam2024-01-25 16:43:53 -0500
commit975deb7528cd98460528553f6a9162bfbcd6cab1 (patch)
treed1419c7b50f428a3b0e3de15ca641887dcd94aed /src/frontend_common
parentfs: Add path class (diff)
downloadyuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar.gz
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.tar.xz
yuzu-975deb7528cd98460528553f6a9162bfbcd6cab1.zip
Address review comments and fix compilation problems
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
159 }; 159 };
160 160
161 std::shared_ptr<FileSys::NSP> nsp; 161 std::shared_ptr<FileSys::NSP> nsp;
162 FileSys::VirtualFile file = vfs.OpenFile(filename, FileSys::Mode::Read); 162 FileSys::VirtualFile file = vfs.OpenFile(filename, FileSys::OpenMode::Read);
163 if (boost::to_lower_copy(file->GetName()).ends_with(std::string("nsp"))) { 163 if (boost::to_lower_copy(file->GetName()).ends_with(std::string("nsp"))) {
164 nsp = std::make_shared<FileSys::NSP>(file); 164 nsp = std::make_shared<FileSys::NSP>(file);
165 if (nsp->IsExtractedType()) { 165 if (nsp->IsExtractedType()) {
@@ -224,7 +224,8 @@ inline InstallResult InstallNCA(FileSys::VfsFilesystem& vfs, const std::string&
224 return true; 224 return true;
225 }; 225 };
226 226
227 const auto nca = std::make_shared<FileSys::NCA>(vfs.OpenFile(filename, FileSys::Mode::Read)); 227 const auto nca =
228 std::make_shared<FileSys::NCA>(vfs.OpenFile(filename, FileSys::OpenMode::Read));
228 const auto id = nca->GetStatus(); 229 const auto id = nca->GetStatus();
229 230
230 // Game updates necessary are missing base RomFS 231 // Game updates necessary are missing base RomFS
@@ -345,8 +346,8 @@ inline std::vector<std::string> VerifyInstalledContents(
345inline GameVerificationResult VerifyGameContents( 346inline GameVerificationResult VerifyGameContents(
346 Core::System& system, const std::string& game_path, 347 Core::System& system, const std::string& game_path,
347 const std::function<bool(size_t, size_t)>& callback) { 348 const std::function<bool(size_t, size_t)>& callback) {
348 const auto loader = 349 const auto loader = Loader::GetLoader(
349 Loader::GetLoader(system, system.GetFilesystem()->OpenFile(game_path, FileSys::Mode::Read)); 350 system, system.GetFilesystem()->OpenFile(game_path, FileSys::OpenMode::Read));
350 if (loader == nullptr) { 351 if (loader == nullptr) {
351 return GameVerificationResult::NotImplemented; 352 return GameVerificationResult::NotImplemented;
352 } 353 }