- fix advanscene save size detect and description in console;
This commit is contained in:
parent
3896bf18c8
commit
65b31c7ad6
|
@ -591,7 +591,7 @@ int NDS_LoadROM(const char *filename, const char *physicalName, const char *logi
|
||||||
buf[4] = 0;
|
buf[4] = 0;
|
||||||
if (advsc.checkDB(buf, gameInfo.crc))
|
if (advsc.checkDB(buf, gameInfo.crc))
|
||||||
{
|
{
|
||||||
u8 sv = advsc.getSaveType();
|
u8 sv = advsc.getSaveType() + 1; // skip autodetect description in save_types[] struct
|
||||||
printf("Found in game database by %s:\n",advsc.getIdMethod());
|
printf("Found in game database by %s:\n",advsc.getIdMethod());
|
||||||
printf("\t* ROM save type: ");
|
printf("\t* ROM save type: ");
|
||||||
if (sv == 0xFF)
|
if (sv == 0xFF)
|
||||||
|
|
|
@ -1035,7 +1035,7 @@ void BackupDevice::loadfile()
|
||||||
{
|
{
|
||||||
if (advsc.isLoaded())
|
if (advsc.isLoaded())
|
||||||
{
|
{
|
||||||
info.type = advsc.getSaveType();
|
info.type = advsc.getSaveType() + 1; // skip autodetect description in save_types[] struct
|
||||||
if (info.type != 0xFF && info.type != 0xFE)
|
if (info.type != 0xFF && info.type != 0xFE)
|
||||||
{
|
{
|
||||||
u32 adv_size = save_types[info.type+1].size;
|
u32 adv_size = save_types[info.type+1].size;
|
||||||
|
|
Loading…
Reference in New Issue