summaryrefslogtreecommitdiff
path: root/src/core/loader/nca.cpp
diff options
context:
space:
mode:
authorGravatar liamwhite2023-12-03 16:26:14 -0500
committerGravatar GitHub2023-12-03 16:26:14 -0500
commitfedeff7a8936f2528860611a42206ecd5d306248 (patch)
tree0d5d6c620ebd87b3d8524229d9f3fe5958fa2025 /src/core/loader/nca.cpp
parentMerge pull request #12261 from liamwhite/fruit-company (diff)
parentfile_sys: handle null romfs (diff)
downloadyuzu-fedeff7a8936f2528860611a42206ecd5d306248.tar.gz
yuzu-fedeff7a8936f2528860611a42206ecd5d306248.tar.xz
yuzu-fedeff7a8936f2528860611a42206ecd5d306248.zip
Merge pull request #12263 from liamwhite/null-romfs
file_sys: handle null romfs
Diffstat (limited to 'src/core/loader/nca.cpp')
-rw-r--r--src/core/loader/nca.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/loader/nca.cpp b/src/core/loader/nca.cpp
index 4feb6968a..814407535 100644
--- a/src/core/loader/nca.cpp
+++ b/src/core/loader/nca.cpp
@@ -74,10 +74,8 @@ AppLoader_NCA::LoadResult AppLoader_NCA::Load(Kernel::KProcess& process, Core::S
74 return load_result; 74 return load_result;
75 } 75 }
76 76
77 if (nca->GetRomFS() != nullptr && nca->GetRomFS()->GetSize() > 0) { 77 system.GetFileSystemController().RegisterRomFS(std::make_unique<FileSys::RomFSFactory>(
78 system.GetFileSystemController().RegisterRomFS(std::make_unique<FileSys::RomFSFactory>( 78 *this, system.GetContentProvider(), system.GetFileSystemController()));
79 *this, system.GetContentProvider(), system.GetFileSystemController()));
80 }
81 79
82 is_loaded = true; 80 is_loaded = true;
83 return load_result; 81 return load_result;