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