mirror of
https://github.com/dborth/fceugx.git
synced 2024-10-31 22:45:05 +01:00
Edit fceuram to compile with newer goombasav
This commit is contained in:
parent
da47811bfd
commit
0021645e1f
@ -102,10 +102,10 @@ bool SaveRAM (char * filepath, bool silent)
|
||||
}
|
||||
|
||||
// Look for just one save file. If there aren't any, or there is more than one, don't read any data.
|
||||
stateheader* sh1 = NULL;
|
||||
stateheader* sh2 = NULL;
|
||||
const stateheader* sh1 = NULL;
|
||||
const stateheader* sh2 = NULL;
|
||||
|
||||
stateheader* sh = (stateheader*)(gba_data + 4);
|
||||
const stateheader* sh = stateheader_first(gba_data);
|
||||
while (sh && stateheader_plausible(sh)) {
|
||||
if (little_endian_conv_16(sh->type) != GOOMBA_SRAMSAVE) {}
|
||||
else if (sh1 == NULL) {
|
||||
@ -203,10 +203,10 @@ bool LoadRAM (char * filepath, bool silent)
|
||||
}
|
||||
|
||||
// Look for just one save file. If there aren't any, or there is more than one, don't read any data.
|
||||
stateheader* sh1 = NULL;
|
||||
stateheader* sh2 = NULL;
|
||||
const stateheader* sh1 = NULL;
|
||||
const stateheader* sh2 = NULL;
|
||||
|
||||
stateheader* sh = (stateheader*)(savebuffer + 4);
|
||||
const stateheader* sh = stateheader_first(savebuffer);
|
||||
while (sh && stateheader_plausible(sh)) {
|
||||
if (little_endian_conv_16(sh->type) != GOOMBA_SRAMSAVE) { }
|
||||
else if (sh1 == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user