From d54d575a6f21bc16afaa937aedec338ed825514f Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 16 Mar 2021 17:35:03 +0100 Subject: [PATCH] Fix crashing when trying to load a icon from a .rpx --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 8b0085c..5144f1e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -347,7 +347,7 @@ DECL_FUNCTION(int32_t, ACPCheckTitleLaunchByTitleListTypeEx, MCPTitleListType *t bool iconCached = false; - if (RL_MountBundle("iconread", bundleFilePath.c_str(), BundleSource_FileDescriptor_CafeOS)) { + if (RL_MountBundle("iconread", bundleFilePath.c_str(), BundleSource_FileDescriptor_CafeOS) == 0) { DEBUG_FUNCTION_LINE("Mounted file"); uint32_t file_handle = 0; if (RL_FileOpen("iconread:/meta/iconTex.tga", &file_handle) == 0) {