Removed unused code; code cleanup

This commit is contained in:
pagefault
2001-08-07 00:21:28 +00:00
parent cabeac362a
commit 9e40bdca37
2 changed files with 15 additions and 49 deletions

View File

@@ -56,7 +56,6 @@ NEWSYM cfgforce8b, db 0
NEWSYM cfgloadsdir, db 0 NEWSYM cfgloadsdir, db 0
NEWSYM cfgloadgdir, db 0 NEWSYM cfgloadgdir, db 0
NEWSYM cfgnewgfx, db 0 NEWSYM cfgnewgfx, db 0
NEWSYM cfgcopymethod, db 0
NEWSYM cfgvsync, db 0 NEWSYM cfgvsync, db 0
NEWSYM cfgvolume, db 75 NEWSYM cfgvolume, db 75
NEWSYM cfgecho, db 0 NEWSYM cfgecho, db 0
@@ -364,7 +363,6 @@ NEWSYM DOScreatenewcfg
checkitemcfg 'l', [JoyLC],.checkl checkitemcfg 'l', [JoyLC],.checkl
checkitemcfg 'm', [JoyRC],.checkm checkitemcfg 'm', [JoyRC],.checkm
checkitemcfg 'n', [cfgnewgfx],.checkn checkitemcfg 'n', [cfgnewgfx],.checkn
checkitemcfg 'o', [cfgcopymethod],.checko
checkitemcfg 'p', [cfgvsync],.checkp checkitemcfg 'p', [cfgvsync],.checkp
checkitemcfg 'q', [cfgvolume],.checkq checkitemcfg 'q', [cfgvolume],.checkq
checkitemcfg 'r', [cfgecho],.checkr checkitemcfg 'r', [cfgecho],.checkr
@@ -577,10 +575,6 @@ db '; Percent to Execute [50 .. 150]',13,10
db '',13,10 db '',13,10
db 'Execute = %T',13,10 db 'Execute = %T',13,10
db '',13,10 db '',13,10
;db '; Copy Method, 0 = Normal, 2 = MMX',13,10
;db '',13,10
;db 'CopyMethod = %o',13,10
;db '',13,10
%ifdef __WIN32__ %ifdef __WIN32__
db '; Video Mode, 0 - 25',13,10 db '; Video Mode, 0 - 25',13,10
db '; 0 = 64x56 R WIN 1 = 128x112 R WIN',13,10 db '; 0 = 64x56 R WIN 1 = 128x112 R WIN',13,10
@@ -1078,7 +1072,7 @@ NEWSYM getcfg
call .cmpstr call .cmpstr
cmp bl,1 cmp bl,1
je .nostrw je .nostrw
call .getcopymethod call .getvsync
.nostrw .nostrw
mov ecx,[.strlena] mov ecx,[.strlena]
cmp ecx,[.strx] cmp ecx,[.strx]
@@ -1088,7 +1082,7 @@ NEWSYM getcfg
call .cmpstr call .cmpstr
cmp bl,1 cmp bl,1
je .nostrx je .nostrx
call .getvsync call .getvolume
.nostrx .nostrx
mov ecx,[.strlena] mov ecx,[.strlena]
cmp ecx,[.stry] cmp ecx,[.stry]
@@ -1098,7 +1092,7 @@ NEWSYM getcfg
call .cmpstr call .cmpstr
cmp bl,1 cmp bl,1
je .nostry je .nostry
call .getvolume call .getecho
.nostry .nostry
mov ecx,[.strlena] mov ecx,[.strlena]
cmp ecx,[.strz] cmp ecx,[.strz]
@@ -1108,7 +1102,7 @@ NEWSYM getcfg
call .cmpstr call .cmpstr
cmp bl,1 cmp bl,1
je .nostrz je .nostrz
call .getecho call .getreverses
.nostrz .nostrz
mov ecx,[.strlena] mov ecx,[.strlena]
cmp ecx,[.str1] cmp ecx,[.str1]
@@ -1118,7 +1112,7 @@ NEWSYM getcfg
call .cmpstr call .cmpstr
cmp bl,1 cmp bl,1
je .nostr1 je .nostr1
call .getreverses call .getplay1234
.nostr1 .nostr1
mov ecx,[.strlena] mov ecx,[.strlena]
cmp ecx,[.str2] cmp ecx,[.str2]
@@ -1128,7 +1122,7 @@ NEWSYM getcfg
call .cmpstr call .cmpstr
cmp bl,1 cmp bl,1
je .nostr2 je .nostr2
call .getplay1234 call .getdontsave
.nostr2 .nostr2
mov ecx,[.strlena] mov ecx,[.strlena]
cmp ecx,[.str3] cmp ecx,[.str3]
@@ -1138,18 +1132,8 @@ NEWSYM getcfg
call .cmpstr call .cmpstr
cmp bl,1 cmp bl,1
je .nostr3 je .nostr3
call .getdontsave
.nostr3
mov ecx,[.strlena]
cmp ecx,[.str4]
jne .nostr4
mov edx,.str4+4
mov eax,.stringa
call .cmpstr
cmp bl,1
je .nostr4
call .getreinit call .getreinit
.nostr4 .nostr3
ret ret
.cmpstr .cmpstr
@@ -1790,22 +1774,6 @@ NEWSYM getcfg
.nonewgfx .nonewgfx
ret ret
.getcopymethod
cmp dword[.strlenb],1
jne .nocopymethod
cmp byte[.stringb],'1'
jne .nofpu
mov byte[FPUCopy],0
mov byte[cfgcopymethod],1
jmp .nocopymethod
.nofpu
cmp byte[.stringb],'2'
jne .nocopymethod
mov byte[FPUCopy],2
mov byte[cfgcopymethod],2
.nocopymethod
ret
.getvsync .getvsync
cmp dword[.strlenb],1 cmp dword[.strlenb],1
jne .novsync jne .novsync
@@ -1944,21 +1912,19 @@ SECTION .data
db 'JOYMAP1' db 'JOYMAP1'
.strv dd 6 .strv dd 6
db 'NEWGFX' db 'NEWGFX'
.strw dd 10 .strw dd 5
db 'COPYMETHOD'
.strx dd 5
db 'VSYNC' db 'VSYNC'
.stry dd 6 .strx dd 6
db 'VOLUME' db 'VOLUME'
.strz dd 11 .stry dd 11
db 'ECHODISABLE' db 'ECHODISABLE'
.str1 dd 13 .strz dd 13
db 'REVERSESTEREO' db 'REVERSESTEREO'
.str2 dd 13 .str1 dd 13
db 'PL34TO12SHARE' db 'PL34TO12SHARE'
.str3 dd 8 .str2 dd 8
db 'DONTSAVE' db 'DONTSAVE'
.str4 dd 10 .str3 dd 10
db 'REINITTIME' db 'REINITTIME'
.usespace db 0 .usespace db 0

View File

@@ -135,7 +135,7 @@ EXTSYM NumInputDevices,GUIInputNames
EXTSYM GUIVideoModeNames EXTSYM GUIVideoModeNames
EXTSYM GUISLVID,GUIINVID,GUIEAVID,GUIIEVID,GUIFSVID,GUISSVID,GUITBVID EXTSYM GUISLVID,GUIINVID,GUIEAVID,GUIIEVID,GUIFSVID,GUISSVID,GUITBVID
EXTSYM GUIHSVID,GUI2xVID,GUII2VID,GUIM7VID EXTSYM GUIHSVID,GUI2xVID,GUII2VID,GUIM7VID
EXTSYM cfgsoundon, cfgSoundQuality, cfgStereoSound EXTSYM cfgsoundon,cfgSoundQuality,cfgStereoSound
EXTSYM convertnum,converthex EXTSYM convertnum,converthex
EXTSYM per2exec EXTSYM per2exec
EXTSYM hostname EXTSYM hostname