Skip to content

Commit da5ac8d

Browse files
committed
memcard progress
1 parent 1182846 commit da5ac8d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

decompile/General/MEMCARD/MEMCARD_12_NewTask.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ int DECOMP_MEMCARD_NewTask(int slotIdx, char *name, uint8_t *ptrMemcard, int mem
55
{
66
sdata->memcardSlot = slotIdx;
77

8-
MEMCARD_StringSet(sdata->s_bu00_BASCUS_94426_slots, slotIdx, name);
8+
MEMCARD_StringSet(sdata->s_memcardFileCurr, slotIdx, name);
99

1010
// pointer to memcard 800992e4
1111
sdata->memcard_ptrStart = ptrMemcard;

decompile/General/MEMCARD/MEMCARD_16_GetFreeBytes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ void DECOMP_MEMCARD_GetFreeBytes(int slotIdx)
1010
struct DIRENTRY entry;
1111

1212
int bytesUsedMemCard = 0;
13-
MEMCARD_StringSet(sdata->s_bu00_BASCUS_94426_slots, slotIdx, sdata->s_AnyFile);
13+
MEMCARD_StringSet(sdata->s_memcardFileCurr, slotIdx, sdata->s_AnyFile);
1414

1515
// string for directory and file of save that is in use
16-
firstEntry = firstfile(sdata->s_bu00_BASCUS_94426_slots, &entry);
16+
firstEntry = firstfile(sdata->s_memcardFileCurr, &entry);
1717

1818
for (
1919
struct DIRENTRY *nxtEntry = &entry;

decompile/General/MEMCARD/MEMCARD_23_FindFirstGhost.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ char* DECOMP_MEMCARD_FindFirstGhost(int slotIdx, char *srcString)
99

1010
struct DIRENTRY *firstEntry;
1111
struct DIRENTRY someEntry;
12-
MEMCARD_StringSet(sdata->s_bu00_BASCUS_94426_slots, slotIdx, srcString);
12+
MEMCARD_StringSet(sdata->s_memcardFileCurr, slotIdx, srcString);
1313

14-
firstEntry = firstfile(sdata->s_bu00_BASCUS_94426_slots, &someEntry);
14+
firstEntry = firstfile(sdata->s_memcardFileCurr, &someEntry);
1515
if (firstEntry == 0)
1616
return 0;
1717

decompile/WorkInProgress/src/MEMCARD/MEMCARD_19_Load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ uint8_t MEMCARD_Load(int slotIdx, char *name, uint8_t *ptrMemcard, int memcardFi
1212

1313
MEMCARD_NewTask(slotIdx, name, ptrMemcard, memcardFileSize, param5); // Too many params to NewTask. param5 is always 0
1414

15-
sdata->memcard_fd = open(sdata->s_bu00_BASCUS_94426_slots, FASYNC|FREAD);
15+
sdata->memcard_fd = open(sdata->s_memcardFileCurr, FASYNC|FREAD);
1616

1717
if (sdata->memcard_fd == -1)
1818
{

decompile/WorkInProgress/src/MEMCARD/MEMCARD_20_Save.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ uint8_t MEMCARD_Save(int slotIdx, char *name,
5454
// Search for "MEMCARD_SET_SIZE_BYTE3"
5555
int whatIsThis = (unsigned int)*((uint8_t *)(data.memcardIcon_PsyqHand) + 3) << 0x10;
5656

57-
sdata->memcard_fd = open(sdata->s_bu00_BASCUS_94426_slots, whatIsThis | FCREATE);
57+
sdata->memcard_fd = open(sdata->s_memcardFileCurr, whatIsThis | FCREATE);
5858

5959
if (sdata->memcard_fd != -1)
6060
{
@@ -66,7 +66,7 @@ uint8_t MEMCARD_Save(int slotIdx, char *name,
6666
// ====== Open 2 ======
6767

6868

69-
sdata->memcard_fd = open(sdata->s_bu00_BASCUS_94426_slots, FASYNC|FWRITE);
69+
sdata->memcard_fd = open(sdata->s_memcardFileCurr, FASYNC|FWRITE);
7070

7171
if (sdata->memcard_fd != -1)
7272
{

include/regionsEXE.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4803,7 +4803,7 @@ struct sData
48034803
// 80098058 -- JpnTrial
48044804
// 8009946C -- EurRetail
48054805
// 8009C56C -- JpnRetail
4806-
char s_bu00_BASCUS_94426_slots[0x20];
4806+
char s_memcardFileCurr[0x20];
48074807

48084808
// 800990c4
48094809
char s_memcardFindGhostFile[0x20];

0 commit comments

Comments
 (0)