mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-25 02:41:47 +08:00
Add card inserted check for extra certainty.
This commit is contained in:
parent
62eac326db
commit
d608181603
@ -21,8 +21,9 @@ typedef struct {
|
|||||||
} populate_titles_data;
|
} populate_titles_data;
|
||||||
|
|
||||||
static Result task_populate_titles_from(populate_titles_data* data, FS_MediaType mediaType) {
|
static Result task_populate_titles_from(populate_titles_data* data, FS_MediaType mediaType) {
|
||||||
|
bool inserted;
|
||||||
FS_CardType type;
|
FS_CardType type;
|
||||||
if(mediaType == MEDIATYPE_GAME_CARD && (R_FAILED(FSUSER_GetCardType(&type)) || type != CARD_CTR)) {
|
if(mediaType == MEDIATYPE_GAME_CARD && ((R_FAILED(FSUSER_CardSlotIsInserted(&inserted)) || !inserted) || (R_FAILED(FSUSER_GetCardType(&type)) || type != CARD_CTR))) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user