summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2022-09-25 20:31:35 +0200
committerMerry <git@mary.rs>2022-09-25 20:31:35 +0200
commitf55ed1cab0de61c40455afd680cd878d88ece977 (patch)
treef808d5e8ca4c4502d83914a8028bd04d0bf81a9a /src/core
parentMerge pull request #8920 from abouvier/cmake-git (diff)
downloadyuzu-f55ed1cab0de61c40455afd680cd878d88ece977.tar
yuzu-f55ed1cab0de61c40455afd680cd878d88ece977.tar.gz
yuzu-f55ed1cab0de61c40455afd680cd878d88ece977.tar.bz2
yuzu-f55ed1cab0de61c40455afd680cd878d88ece977.tar.lz
yuzu-f55ed1cab0de61c40455afd680cd878d88ece977.tar.xz
yuzu-f55ed1cab0de61c40455afd680cd878d88ece977.tar.zst
yuzu-f55ed1cab0de61c40455afd680cd878d88ece977.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/loader/loader.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/loader.cpp b/src/core/loader/loader.cpp
index 104d16efa..f24474ed8 100644
--- a/src/core/loader/loader.cpp
+++ b/src/core/loader/loader.cpp
@@ -244,6 +244,10 @@ static std::unique_ptr<AppLoader> GetFileLoader(Core::System& system, FileSys::V
std::unique_ptr<AppLoader> GetLoader(Core::System& system, FileSys::VirtualFile file,
u64 program_id, std::size_t program_index) {
+ if (!file) {
+ return nullptr;
+ }
+
FileType type = IdentifyFile(file);
const FileType filename_type = GuessFromFilename(file->GetName());