From 4e4bbd87245df4f0a88306c3d0609396acac7396 Mon Sep 17 00:00:00 2001 From: tmaul Date: Sat, 14 Apr 2012 21:36:38 +0000 Subject: [PATCH] Slightly more snes cleanup, although it's still pointless --- src/burn/drv/snes/snes_main.cpp | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/src/burn/drv/snes/snes_main.cpp b/src/burn/drv/snes/snes_main.cpp index 60f70a2ff..20249a123 100644 --- a/src/burn/drv/snes/snes_main.cpp +++ b/src/burn/drv/snes/snes_main.cpp @@ -47,14 +47,6 @@ static INT32 MemIndex(UINT32 cart_size) } -void freemem() -{ - for (int i=0;i<2048;i++) - { - memlookup[i]=NULL; - } - BurnFree (AllMem); -} void __cdecl snemlog(TCHAR *format,...) @@ -323,9 +315,7 @@ void SnesReset() INT32 SnesInit() { INT32 nret = 0; - INT32 counter=0; - char name[22]; - INT32 len; + UINT16 temp,temp2; struct BurnRomInfo ri; @@ -342,11 +332,9 @@ INT32 SnesInit() initppu(); initspc(); makeopcodetable(); -// initdsp(); SnesReset(); - spccycles=-10000; @@ -372,13 +360,6 @@ INT32 SnesInit() snes_mapmem(); } - len=counter;//-0x10000; - for (counter=0;counter<21;counter++) - { - name[counter]=snes_readmem(0xFFC0+counter); - } - - name[21]=0; srammask=(1<<(snes_readmem(0xFFD8)+10))-1; if (!snes_readmem(0xFFD8)) @@ -409,7 +390,11 @@ INT32 SnesInit() INT32 SnesExit() { - freemem(); + for (int i=0;i<2048;i++) + { + memlookup[i]=NULL; + } + BurnFree (AllMem); return 0; }