Fixed cmdline netplay

This commit is contained in:
pagefault
2001-10-01 00:11:40 +00:00
parent 82388f9618
commit 580e7c73cb
2 changed files with 32 additions and 2 deletions

View File

@@ -52,7 +52,14 @@ NEWSYM UIAsmStart
; Function 0501h
; User Interface
; Search for CMDLINE= for commandline entry
NEWSYM CmdLineNetPlay, db 0
NEWSYM CmdLineTCPIPAddress, db 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
EXTSYM TCPIPAddress
SECTION .text
NEWSYM zstart
@@ -68,6 +75,27 @@ NEWSYM zstart
cld ;clear direction flag
cmp byte[CmdLineNetPlay],0
je .nocmdlinenetplay
mov eax,[CmdLineTCPIPAddress]
mov [TCPIPAddress],eax
mov eax,[CmdLineTCPIPAddress+4]
mov [TCPIPAddress+4],eax
mov eax,[CmdLineTCPIPAddress+8]
mov [TCPIPAddress+8],eax
mov eax,[CmdLineTCPIPAddress+12]
mov [TCPIPAddress+12],eax
mov eax,[CmdLineTCPIPAddress+16]
mov [TCPIPAddress+16],eax
mov eax,[CmdLineTCPIPAddress+20]
mov [TCPIPAddress+20],eax
mov eax,[CmdLineTCPIPAddress+24]
mov [TCPIPAddress+24],eax
mov eax,[CmdLineTCPIPAddress+28]
mov [TCPIPAddress+28],eax
xor eax,eax
.nocmdlinenetplay
call setnoise
call InitSPC
%ifndef __MSDOS__