chr ram was not getting initialized to anything

This commit is contained in:
zeromus 2011-10-31 18:17:21 +00:00
parent d6d9ea6a28
commit 55f3e079d0
1 changed files with 2 additions and 0 deletions

View File

@ -1403,6 +1403,8 @@ static int NewiNES_Init(int num)
CHRRAMSize=8192;
}
if((VROM = (uint8 *)FCEU_dmalloc(CHRRAMSize)) == NULL) return 0;
FCEU_MemoryRand(VROM,CHRRAMSize);
UNIFchrrama=VROM;
SetupCartCHRMapping(0,VROM,CHRRAMSize,1);
AddExState(VROM,CHRRAMSize, 0, "CHRR");