@@ -1053,21 +1053,21 @@ void printLastPlayedText(int num) {
1053
1053
printSmall (false , BOX_PX, iconYpos[num] + BOX_PY - (calcSmallFontHeight (STR_LAST_PLAYED_HERE) / 2 ), STR_LAST_PLAYED_HERE, Alignment::center);
1054
1054
}
1055
1055
1056
- void refreshNdsCard () {
1056
+ void refreshNdsCard (bool refreshBoxArt ) {
1057
1057
if (cardRefreshed) return ;
1058
1058
1059
- if (sys ().arm7SCFGLocked () && ms (). showBoxArt ) {
1059
+ if (sys ().arm7SCFGLocked () && refreshBoxArt ) {
1060
1060
loadBoxArt (" nitro:/graphics/boxart_unknown.png" , true );
1061
1061
} else {
1062
1062
my_cardReset (true );
1063
- if ((cardInit () == 0 ) && ms (). showBoxArt ) {
1063
+ if ((cardInit () == 0 ) && refreshBoxArt ) {
1064
1064
char game_TID[5 ] = {0 };
1065
1065
tonccpy (&game_TID, ndsCardHeader.gameCode , 4 );
1066
1066
1067
1067
char boxArtPath[256 ];
1068
1068
sprintf (boxArtPath, (sys ().isRunFromSD () ? " sd:/_nds/TWiLightMenu/boxart/%s.png" : " fat:/_nds/TWiLightMenu/boxart/%s.png" ), game_TID);
1069
1069
loadBoxArt (boxArtPath, true ); // Load box art
1070
- } else if (ms (). showBoxArt ) {
1070
+ } else if (refreshBoxArt ) {
1071
1071
loadBoxArt (" nitro:/graphics/boxart_unknown.png" , true );
1072
1072
}
1073
1073
}
@@ -1616,12 +1616,12 @@ int dsClassicMenu(void) {
1616
1616
loadBoxArt (boxArtPath[ms ().previousUsedDevice ], ms ().previousUsedDevice ); // Load box art
1617
1617
}
1618
1618
1619
- if (isDSiMode () && !flashcardFound () && ms (). slot1Launched ) {
1619
+ if (isDSiMode () && !flashcardFound ()) {
1620
1620
if (REG_SCFG_MC == 0x11 ) {
1621
1621
cardEjected = true ;
1622
- if (ms ().showBoxArt ) loadBoxArt (" nitro:/graphics/boxart_unknown.png" , true );
1622
+ if (ms ().showBoxArt && ms (). slot1Launched ) loadBoxArt (" nitro:/graphics/boxart_unknown.png" , true );
1623
1623
} else {
1624
- refreshNdsCard ();
1624
+ refreshNdsCard (ms (). showBoxArt && ms (). slot1Launched );
1625
1625
}
1626
1626
}
1627
1627
@@ -1659,7 +1659,7 @@ int dsClassicMenu(void) {
1659
1659
cardEjected = true ;
1660
1660
updateMenuText = true ;
1661
1661
} else if (cardEjected) {
1662
- refreshNdsCard ();
1662
+ refreshNdsCard (ms (). showBoxArt );
1663
1663
updateMenuText = true ;
1664
1664
}
1665
1665
}
0 commit comments