From d608181603619bccbe73812f5d1cc54ab8e74105 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Sun, 10 Apr 2016 12:21:15 -0700 Subject: [PATCH] Add card inserted check for extra certainty. --- source/ui/section/task/listtitles.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/ui/section/task/listtitles.c b/source/ui/section/task/listtitles.c index 137e0d3..d5b9ad9 100644 --- a/source/ui/section/task/listtitles.c +++ b/source/ui/section/task/listtitles.c @@ -21,8 +21,9 @@ typedef struct { } populate_titles_data; static Result task_populate_titles_from(populate_titles_data* data, FS_MediaType mediaType) { + bool inserted; 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; }