Fixed a bug that caused extended save state information to be truncated early.

This commit is contained in:
Dwedit
2020-12-30 15:33:27 -05:00
parent ef6e70075f
commit 5fc31e82be
2 changed files with 7 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ typedef uint32_t uint32;
typedef unsigned long long uint64;
typedef long long int64;
#define GINLINE inline
#elif MSVC
#elif MSVC | _MSC_VER
typedef __int64 int64;
typedef unsigned __int64 uint64;
#define GINLINE /* Can't declare a function INLINE

View File

@@ -844,7 +844,12 @@ static int iNES_Init(int num) {
AddExState(VROM, CHRRAMSize, 0, "CHRR");
}
if (head.ROM_type & 8)
AddExState(ExtraNTARAM, 2048, 0, "EXNR");
{
if (ExtraNTARAM != NULL)
{
AddExState(ExtraNTARAM, 2048, 0, "EXNR");
}
}
tmp->init(&iNESCart);
return 1;
}