mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
Make sure inserted game card is a 3DS cartridge.
This commit is contained in:
parent
178210b0db
commit
0a3542d565
@ -21,7 +21,8 @@ typedef struct {
|
||||
} populate_titles_data;
|
||||
|
||||
static Result task_populate_titles_from(populate_titles_data* data, FS_MediaType mediaType) {
|
||||
if(mediaType == MEDIATYPE_GAME_CARD && R_FAILED(FSUSER_GetCardType(NULL))) {
|
||||
FS_CardType type;
|
||||
if(mediaType == MEDIATYPE_GAME_CARD && (R_FAILED(FSUSER_GetCardType(&type)) || type != CARD_CTR)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user