Netplay code (mostly) removed, still need some help on EXTSYMs and port-dependant stuff.

This commit is contained in:
grinvader
2005-04-09 08:40:31 +00:00
parent f488c07ed4
commit 991588a89a
21 changed files with 38 additions and 5480 deletions

View File

@@ -698,73 +698,6 @@ ProcessMouseButtons:
call AddCSCheatCode
; call InsertSearchDescription
.noinsertscc
cmp byte[GUICBHold],21
jne .nomodem1
mov byte[CNetType],3
.nomodem1
cmp byte[GUICBHold],22
jne .nomodem2
mov byte[CNetType],10
mov byte[ModemProcess],0
.nomodem2
cmp byte[GUICBHold],23
jne .nomodem3
mov byte[CNetType],2
.nomodem3
cmp byte[GUICBHold],24
jne .nomodem4
mov byte[CNetType],12
mov byte[ModemProcess],0
.nomodem4
cmp byte[GUICBHold],25
jne .nomodem4b
mov byte[CNetType],15
mov byte[ModemProcess],40
mov byte[WhichRemote],4
.nomodem4b
cmp byte[GUICBHold],26
jne .nomodem4c
mov byte[CNetType],15
mov byte[ModemProcess],41
mov byte[WhichRemote],4
.nomodem4c
cmp byte[GUICBHold],27
jne .noinit
cmp byte[CNetType],20
jne near .nostat20b2
call PreparePacket
mov al,255
call RemoteSendChar
call SendPacket
call PreparePacket
mov al,255
call RemoteSendChar
call SendPacket
call PreparePacket
mov al,255
call RemoteSendChar
call SendPacket
cmp byte[NetQuitAfter],0
je .nostat20b2
mov byte[GUIQuit],1
.nostat20b2
call RemoteDeInit
.noinit
cmp byte[GUICBHold],28
jne .nomodem5
mov byte[CNetType],11
mov byte[ModemProcess],0
.nomodem5
cmp byte[GUICBHold],34
jne .noipx1
mov byte[WhichRemote],2
mov byte[ModemProcess],30
mov byte[CNetType],15
.noipx1
cmp byte[GUICBHold],64
jne .nostatecancel
mov byte[NetStateQuit],1
.nostatecancel
cmp byte[GUICBHold],65
jne .nohomepage
call GotoHomepage
@@ -2634,96 +2567,6 @@ DisplayGUICheatClick:
ret
DisplayNetOptnsClick:
cmp byte[CNetType],1
jne near .nomodem
GUIPHoldbutton 5,15,89,26,21
GUIPHoldbutton 5,30,89,41,22
GUIPHoldbutton 5,45,89,56,23
GUIPHoldbutton 5,60,89,71,24
.nomodem
cmp byte[CNetType],2
jne near .nomodemc
GUIPButtonHole2 9,25,byte[ComNum],1,byte[ComIRQ],4
GUIPButtonHole2 9,35,byte[ComNum],2,byte[ComIRQ],3
GUIPButtonHole2 9,45,byte[ComNum],3,byte[ComIRQ],4
GUIPButtonHole2 9,55,byte[ComNum],4,byte[ComIRQ],3
GUIPButtonHole 94,25,byte[BaudRate],0
GUIPButtonHole 94,35,byte[BaudRate],1
GUIPButtonHole 94,45,byte[BaudRate],2
GUIPButtonHole 94,55,byte[BaudRate],3
GUIPButtonHole 94,65,byte[BaudRate],4
GUIPButtonHole 94,75,byte[BaudRate],5
GUIPButtonHole 94,85,byte[BaudRate],6
GUIPButtonHole 9,85,byte[GUIDialSt+3],'T'
GUIPButtonHole 9,95,byte[GUIDialSt+3],'P'
GUIPHoldbutton2 55,69,63,79,25,byte[ComIRQ],1,15
GUIPHoldbutton2 66,69,74,79,26,byte[ComIRQ],-1,2
GUITextBoxInput 21,125,175,133,GUIInitSt1,24
GUITextBoxInput 21,136,175,144,GUIInitSt2,24
GUIClickCButton 12,147,byte[FossilUse]
.nomodemc
cmp byte[CNetType],3
jne near .nomodemd
GUIPHoldbutton 141,38,175,49,28
.nomodemd
cmp byte[CNetType],4
jne near .notcpip
cmp byte[NetPlayNoMore],1
je near .notcpip
GUIPHoldbutton 5,35,129,46,25
GUIPHoldbutton 5,70,129,81,26
GUITextBoxInputB 55,13,95,21,1
GUITextBoxInputB 26,58,191,66,0
GUITextBoxInputB 55,24,119,32,2
GUIClickCButton 5,93,byte[UDPConfig]
.notcpip
cmp byte[CNetType],10
je .init
cmp byte[CNetType],11
je .init
cmp byte[CNetType],15
je .init
cmp byte[CNetType],12
jne near .noinit
.init
GUIPHoldbutton 120,135,181,146,27
.noinit
cmp byte[CNetType],7
jne near .noipx
GUIPHoldbutton 53,48,87,59,34
.noipx
cmp byte[CNetType],20
jne near .nochat
GUIPHoldbutton 111,169,181,180,27
GUIClickCButtonN 7,135,byte[RemoteCommand],3
GUIClickCButtonN 32,135,byte[RemoteCommand],4
GUIClickCButtonN 57,135,byte[RemoteCommand],5
GUIClickCButtonN 7,145,byte[RemoteCommand],6
GUIClickCButtonN 32,145,byte[RemoteCommand],7
GUIClickCButtonN 7,175,byte[RemoteCommand],8
GUIClickCButtonN 111,135,byte[RemoteCommand],50
GUIClickCButtonN 111,145,byte[RemoteCommand],41
GUIClickCButtonN 111,155,byte[RemoteCommand],42
GUIPHoldbutton2 79,156,87,166,29,byte[Latencytochange],1,19
GUIPHoldbutton2 90,156,98,166,30,byte[Latencytochange],-1,1
; DrawSlideBarWin 8,181,15,[GUIcurrentvideoviewloc],[TViewLoc],12,97,GUINCStA
; GUISlidebarImpl 181,15,188,112,GUINCStA,12,GUIcurrentcheatviewloc,TViewCLoc,TViewLoc,12
mov al,[Latency]
cmp byte[Latencytochange],al
je .nochat
mov byte[RemoteCommand],20
.nochat
cmp byte[CNetType],22
je .yesstate
cmp byte[CNetType],21
jne near .nostate
.yesstate
GUIPHoldbutton 73,48,127,59,64
.nostate
ret
guipresstest: