Last IP address used is now saved
This commit is contained in:
@@ -592,6 +592,7 @@ NEWSYM TrapMouseCursor, db 1
|
||||
NEWSYM KeyQuickClock, dd 0
|
||||
NEWSYM KeyQuickMinimize, dd 0
|
||||
NEWSYM AutoIncSaveSlot, db 0
|
||||
NEWSYM TCPIPAddress, 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
|
||||
|
||||
GUIsave equ $-GUIRAdd
|
||||
|
||||
|
||||
@@ -644,7 +644,7 @@ GUITCPIPKeys:
|
||||
;GUINetTextm2 db 0,0,0
|
||||
cmp byte[GUINetTextm2],1
|
||||
je near .section2
|
||||
mov edi,GUINetTextk2
|
||||
mov edi,TCPIPAddress
|
||||
mov esi,26
|
||||
cmp byte[GUINetTextm2],2
|
||||
jne .notsecondstring
|
||||
|
||||
@@ -116,7 +116,7 @@ ProcessModem:
|
||||
call .writestr
|
||||
mov esi,.tcpipip2
|
||||
call .writestr
|
||||
mov esi,GUINetTextk2
|
||||
mov esi,TCPIPAddress
|
||||
call .writestr
|
||||
mov esi,.tcpipret
|
||||
call .writestr
|
||||
@@ -972,11 +972,11 @@ ProcessRemoteCommand:
|
||||
call RemoteDeInit
|
||||
ret
|
||||
.loadfail
|
||||
cmp dword[GUINetTextk2],'127.'
|
||||
cmp dword[TCPIPAddress],'127.'
|
||||
jne .nonum
|
||||
cmp dword[GUINetTextk2+4],'0.0.'
|
||||
cmp dword[TCPIPAddress+4],'0.0.'
|
||||
jne .nonum
|
||||
cmp byte[GUINetTextk2+8],'1'
|
||||
cmp byte[TCPIPAddress+8],'1'
|
||||
je near .startloadingb
|
||||
.nonum
|
||||
mov esi,.filenotu
|
||||
|
||||
@@ -3848,7 +3848,7 @@ DisplayNetOptnsTCPIP:
|
||||
mov byte[GUItextcolor],222
|
||||
.zero2
|
||||
GUIOuttextwin2 8,59,15,GUINetTextl2
|
||||
GUIOuttextwin2 8,30,60,GUINetTextk2
|
||||
GUIOuttextwin2 8,30,60,TCPIPAddress
|
||||
GUIOuttextwin2 8,59,25,ChatNick
|
||||
mov byte[GUINetTextn2],'_'
|
||||
test byte[GUINetTextm2+2],8
|
||||
@@ -4389,7 +4389,6 @@ GUINetTextg2 db 'START AS SERVER',0
|
||||
GUINetTexth2 db 'CLIENT OPTIONS:',0
|
||||
GUINetTexti2 db 'IP:',0
|
||||
GUINetTextj2 db 'CONNECT TO SERVER',0
|
||||
NEWSYM GUINetTextk2, 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
|
||||
GUINetTextl2 db '7845',0,0,0
|
||||
GUINetTextm2 db 0,0,0
|
||||
GUINetTextn2 db '_',0
|
||||
|
||||
@@ -107,7 +107,7 @@ EXTSYM InitTCP
|
||||
EXTSYM StartServerCycle
|
||||
EXTSYM ServerCheckNewClient
|
||||
EXTSYM acceptzuser
|
||||
EXTSYM GUINetTextk2
|
||||
EXTSYM TCPIPAddress
|
||||
EXTSYM ConnectServer
|
||||
EXTSYM WaitForServer
|
||||
EXTSYM SendData
|
||||
@@ -1500,8 +1500,8 @@ NEWSYM TCPIPInitConnectToServer
|
||||
or eax,eax
|
||||
jnz .failed
|
||||
mov byte[TCPIPStatus],1
|
||||
; Convert GUINetTextk2 to IPAddrStr
|
||||
mov ebx,GUINetTextk2
|
||||
; Convert TCPIPAddress to IPAddrStr
|
||||
mov ebx,TCPIPAddress
|
||||
mov edx,IPAddrStr
|
||||
.notend
|
||||
mov al,[ebx]
|
||||
|
||||
@@ -45,7 +45,7 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
|
||||
romtype, scanlines, showallext, smallscreenon, soundon,
|
||||
spcon, vsyncon, DisplayS, fname, filefound, SnowOn,
|
||||
NetChatFirst,NetServer,NetNewNick,
|
||||
NetFilename,GUINetTextk2,NetQuitAfter,UDPConfig;
|
||||
NetFilename,TCPIPAddress,NetQuitAfter,UDPConfig;
|
||||
|
||||
int getopt(int argc, char *const argv[], const char *optstring);
|
||||
extern char *optarg;
|
||||
|
||||
@@ -120,7 +120,7 @@ EXTSYM InitTCP
|
||||
EXTSYM StartServerCycle
|
||||
EXTSYM ServerCheckNewClient
|
||||
EXTSYM acceptzuser
|
||||
EXTSYM GUINetTextk2
|
||||
EXTSYM TCPIPAddress
|
||||
EXTSYM ConnectServer
|
||||
EXTSYM WaitForServer
|
||||
EXTSYM SendData
|
||||
@@ -1789,8 +1789,8 @@ NEWSYM TCPIPInitConnectToServer
|
||||
or eax,eax
|
||||
jnz .failed
|
||||
mov byte[TCPIPStatus],1
|
||||
; Convert GUINetTextk2 to IPAddrStr
|
||||
mov ebx,GUINetTextk2
|
||||
; Convert TCPIPAddress to IPAddrStr
|
||||
mov ebx,TCPIPAddress
|
||||
mov edx,IPAddrStr
|
||||
.notend
|
||||
mov al,[ebx]
|
||||
|
||||
@@ -40,7 +40,7 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
|
||||
romtype, scanlines, showallext, smallscreenon, soundon,
|
||||
spcon, vsyncon, DisplayS, fname, filefound, SnowOn,
|
||||
NetChatFirst,NetServer,NetNewNick,
|
||||
NetFilename,GUINetTextk2,NetQuitAfter,UDPConfig;
|
||||
NetFilename,TCPIPAddress,NetQuitAfter,UDPConfig;
|
||||
|
||||
void ccmdline(void);
|
||||
|
||||
@@ -170,7 +170,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdSh
|
||||
if (strptr<4) {
|
||||
NetServer=0;
|
||||
} else {
|
||||
strp=&GUINetTextk2;
|
||||
strp=&TCPIPAddress;
|
||||
strncpy(strp,ExtA[3],28);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user