From 5cf0e6918b36d594d38932d510c43d2e039447e9 Mon Sep 17 00:00:00 2001 From: n-a-c-h <> Date: Wed, 8 Dec 2004 23:05:25 +0000 Subject: [PATCH] Removed more useless code. --- zsnes/src/gui/gui.asm | 37 +++---------------------------------- 1 file changed, 3 insertions(+), 34 deletions(-) diff --git a/zsnes/src/gui/gui.asm b/zsnes/src/gui/gui.asm index d3a94c4f..71f33e0c 100644 --- a/zsnes/src/gui/gui.asm +++ b/zsnes/src/gui/gui.asm @@ -1850,47 +1850,16 @@ NEWSYM StartGUI .noof mov [GUIcurrentvideoviewloc],eax + call SaveSramData + ; change to sram dir mov dl,[SRAMDrive] mov ebx,SRAMDir call Change_Dir - call SaveSramData - - cmp byte[SFXEnable],0 - je .nosfxbatt - cmp byte[CHIPBATT],0 - je .nosfxbatt - clim - mov edx,fnames+1 - call Create_File - jc .nosfxramwrite - mov bx,ax - mov ecx,65536 - mov edx,[sfxramdata] - call Write_File - call Close_File -.nosfxramwrite - stim -.nosfxbatt - - cmp byte[SETAEnable],0 - je .nosetasram - clim - mov edx,fnames+1 - call Create_File - jc .nosetaramwrite - mov bx,ax - mov ecx,4096 - mov edx,[setaramdata] - call Write_File - call Close_File -.nosetaramwrite - stim -.nosetasram - call GUIQuickLoadUpdate call LoadDetermine + ; change dir to LoadDrive/LoadDir mov dl,[LoadDrive] mov ebx,LoadDir