Skip to content

Commit ccc48e5

Browse files
authored
Fix isavegame function order (#404)
1 parent cb48eeb commit ccc48e5

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

src/SB/Core/gc/isavegame.cpp

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,6 +1562,28 @@ static S32 iSG_mc_mount(S32 slot)
15621562
return ret;
15631563
}
15641564

1565+
static S32 iSG_mc_unmount(S32 slot)
1566+
{
1567+
S32 rc = 0;
1568+
S32 result;
1569+
1570+
do
1571+
{
1572+
result = CARDUnmount(slot);
1573+
} while (result == CARD_RESULT_BUSY);
1574+
1575+
if (result == CARD_RESULT_READY)
1576+
{
1577+
rc = 1;
1578+
}
1579+
else if (result == CARD_RESULT_NOCARD)
1580+
{
1581+
rc = 1;
1582+
}
1583+
1584+
return rc;
1585+
}
1586+
15651587
static void iSG_cb_unmount(s32 chan, s32 result)
15661588
{
15671589
st_ISGSESSION* session = &g_isgdata_MAIN;
@@ -1803,6 +1825,10 @@ static S32 iSG_mc_fdel(st_ISG_MEMCARD_DATA* mcdata, const char* fname)
18031825
return ret;
18041826
}
18051827

1828+
static void iSG_cb_asyndone(s32, s32)
1829+
{
1830+
}
1831+
18061832
static S32 iSG_mcqa_fread(st_ISG_MEMCARD_DATA* mcdata, char* buf, S32 len, S32 offset);
18071833
static S32 iSG_mc_fread(st_ISG_MEMCARD_DATA* mcdata, char* buf, S32 len, S32 offset)
18081834
{
@@ -1980,32 +2006,6 @@ U8 iSGCheckMemoryCard(st_ISGSESSION* isgdata, S32 index)
19802006
return 0;
19812007
}
19822008

1983-
static S32 iSG_mc_unmount(S32 slot)
1984-
{
1985-
S32 rc = 0;
1986-
S32 result;
1987-
1988-
do
1989-
{
1990-
result = CARDUnmount(slot);
1991-
} while (result == CARD_RESULT_BUSY);
1992-
1993-
if (result == CARD_RESULT_READY)
1994-
{
1995-
rc = 1;
1996-
}
1997-
else if (result == CARD_RESULT_NOCARD)
1998-
{
1999-
rc = 1;
2000-
}
2001-
2002-
return rc;
2003-
}
2004-
2005-
static void iSG_cb_asyndone(s32, s32)
2006-
{
2007-
}
2008-
20092009
void iSGAutoSave_Startup()
20102010
{
20112011
}

0 commit comments

Comments
 (0)