Edit fceuram to compile with newer goombasav

This commit is contained in:
libertyernie 2017-08-30 18:27:18 -05:00
parent da47811bfd
commit 0021645e1f

View File

@ -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) {