Skip to content

Commit db4e29e

Browse files
committed
memcard.cpp - Change how memory card slot B is checked for safety
1 parent e3c08bd commit db4e29e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ttyd-tools/rel/source/memcard.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ int32_t createSettingsFile(int32_t memoryCardSlot, gc::card::CARDFileInfo *setti
7171
{
7272
// If creating the file on slot B, unmount the current slot and mount slot A
7373
int32_t ReturnCode;
74-
if (memoryCardSlot == CARD_SLOT_B)
74+
if (memoryCardSlot != CARD_SLOT_A)
7575
{
7676
ReturnCode = gc::card::CARDUnmount(memoryCardSlot);
7777
if (ReturnCode != CARD_RESULT_READY)
@@ -119,7 +119,7 @@ int32_t createSettingsFile(int32_t memoryCardSlot, gc::card::CARDFileInfo *setti
119119
}
120120

121121
// If creating the file on slot B, unmount the current slot and mount slot B
122-
if (memoryCardSlot == CARD_SLOT_B)
122+
if (memoryCardSlot != CARD_SLOT_A)
123123
{
124124
ReturnCode = gc::card::CARDUnmount(CARD_SLOT_A);
125125
if (ReturnCode != CARD_RESULT_READY)

0 commit comments

Comments
 (0)