Fix crashing when trying to load a icon from a .rpx

This commit is contained in:
Maschell 2021-03-16 17:35:03 +01:00
parent 92ebba3be1
commit d54d575a6f

View File

@ -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) {