Fixed a bug that caused extended save state information to be truncated early.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user