mirror of
https://github.com/wiiu-env/homebrew_on_menu_plugin.git
synced 2024-11-25 11:56:53 +01:00
Only try to load an icon if the filename ends with .wuhb
This commit is contained in:
parent
5351af6c46
commit
0e03ccd5b2
@ -326,12 +326,12 @@ DECL_FUNCTION(int, FSOpenFile, FSClient *client, FSCmdBlock *block, char *path,
|
|||||||
char *ending = id + 9;
|
char *ending = id + 9;
|
||||||
sscanf(id, "%08X", &lowerTitleID);
|
sscanf(id, "%08X", &lowerTitleID);
|
||||||
int32_t idVal = getIDByLowerTitleID(lowerTitleID);
|
int32_t idVal = getIDByLowerTitleID(lowerTitleID);
|
||||||
if (idVal < 0) {
|
if (idVal >= 0) {
|
||||||
DEBUG_FUNCTION_LINE("Failed to find id for titleID %08X", lowerTitleID);
|
if (StringTools::EndsWith(gFileInfos[idVal].filename, ".wuhb") && OpenFileForID(idVal, ending, handle) < 0) {
|
||||||
} else {
|
|
||||||
if (OpenFileForID(idVal, ending, handle) < 0) {
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
DEBUG_FUNCTION_LINE("Failed to find id for titleID %08X", lowerTitleID);
|
||||||
}
|
}
|
||||||
return FS_STATUS_OK;
|
return FS_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user