From 43b751f2c49839a1b408b95374ff47233f767dc8 Mon Sep 17 00:00:00 2001 From: jbo_85 <> Date: Thu, 16 Feb 2006 23:18:00 +0000 Subject: [PATCH] Optimized code a bit. --- zsnes/src/gui/menu.asm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/zsnes/src/gui/menu.asm b/zsnes/src/gui/menu.asm index c4e87e55..9fa2ec92 100644 --- a/zsnes/src/gui/menu.asm +++ b/zsnes/src/gui/menu.asm @@ -32,7 +32,7 @@ EXTSYM spritetablea,sprlefttot,newengen,spcextraram,resolutn,Open_File EXTSYM Close_File,Write_File,Create_File,Get_Key,Get_Date,continueprognokeys EXTSYM ForceNonTransp,GUIOn,Check_Key,JoyRead,GetScreen,SSKeyPressed EXTSYM SPCKeyPressed,StopSound,StartSound,ExecExitOkay,t1cc,Clear2xSaIBuffer -EXTSYM romdata,romtype,ScreenShotFormat,Voice0Disable,Voice1Disable +EXTSYM romdata,infoloc,ScreenShotFormat,Voice0Disable,Voice1Disable EXTSYM Voice2Disable,Voice3Disable,Voice4Disable,Voice5Disable,Voice6Disable EXTSYM Voice7Disable,SRAMChdir,SPCPath,SnapPath,CHPath,ZFileCHDir %ifndef NO_PNG @@ -909,11 +909,7 @@ NEWSYM savespcdata ; Copy Game Title mov esi,[romdata] - add esi,7FC0h - cmp byte[romtype],2 - jne .nohirom2 - add esi,8000h -.nohirom2 + add esi,[infoloc] mov ecx,20 mov edi,ssdatst+46+32 .romloop