Made EEPROM and SRAM save type detection override the general FLASH 64KB detection. Fixes the save auto-detect of Saibara Rieko no Dendou Mahjong.
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@1393 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
4cc36ab359
commit
1e08ceb6ea
|
@ -709,12 +709,12 @@ void utilGBAFindSave(const int size)
|
|||
|
||||
if(d == 0x52504545) {
|
||||
if(memcmp(p, "EEPROM_", 7) == 0) {
|
||||
if(detectedSaveType == 0)
|
||||
if(detectedSaveType == 0 || detectedSaveType == 4)
|
||||
detectedSaveType = 1;
|
||||
}
|
||||
} else if (d == 0x4D415253) {
|
||||
if(memcmp(p, "SRAM_", 5) == 0) {
|
||||
if(detectedSaveType == 0)
|
||||
if(detectedSaveType == 0 || detectedSaveType == 4)
|
||||
detectedSaveType = 2;
|
||||
}
|
||||
} else if (d == 0x53414C46) {
|
||||
|
@ -725,7 +725,7 @@ void utilGBAFindSave(const int size)
|
|||
}
|
||||
} else if(memcmp(p, "FLASH", 5) == 0) {
|
||||
if(detectedSaveType == 0) {
|
||||
detectedSaveType = 3;
|
||||
detectedSaveType = 4;
|
||||
flashSize = 0x10000;
|
||||
}
|
||||
}
|
||||
|
@ -739,6 +739,9 @@ void utilGBAFindSave(const int size)
|
|||
if(detectedSaveType == 0) {
|
||||
detectedSaveType = 5;
|
||||
}
|
||||
if(detectedSaveType == 4) {
|
||||
detectedSaveType = 3;
|
||||
}
|
||||
rtcEnable(rtcFound);
|
||||
saveType = detectedSaveType;
|
||||
flashSetSize(flashSize);
|
||||
|
|
Loading…
Reference in New Issue