NES; don't crash

This commit is contained in:
tildearrow 2021-12-11 13:34:29 -05:00
parent 5ffccc5019
commit 1bf64c4f4f
2 changed files with 1 additions and 4 deletions

View file

@ -309,8 +309,6 @@ int DivPlatformNES::init(DivEngine* p, int channels, int sugRate, bool pal) {
}
init_nla_table(500,500);
apu.addrSpace=new unsigned char[65536];
reset();
return 5;
}

View file

@ -207,7 +207,7 @@ enum apu_mode { APU_60HZ, APU_48HZ };
break;\
}\
{\
DMC.buffer = apu.addrSpace[DMC.address];\
DMC.buffer = 0;\
}\
/* incremento gli hwtick da compiere */\
if (hwtick) { hwtick[0] += tick; }\
@ -368,7 +368,6 @@ typedef struct _apu {
int cpu_cycles;
int cpu_opcode_cycle;
unsigned char* addrSpace;
BYTE odd_cycle;
/* ------------------------------------------------------- */