Rev 2854 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2854 | Rev 2995 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | dd path ; path |
27 | dd path ; path |
Line 28... | Line 28... | ||
28 | 28 | ||
29 | __DEBUG__ equ 1 ; enable/disable |
29 | __DEBUG__ equ 1 ; enable/disable |
Line -... | Line 30... | ||
- | 30 | __DEBUG_LEVEL__ equ 1 ; 1 = all, 2 = errors |
|
30 | __DEBUG_LEVEL__ equ 1 ; 1 = all, 2 = errors |
31 | |
- | 32 | ||
Line 31... | Line 33... | ||
31 | 33 | BUFFERSIZE equ 1024 |
|
32 | BUFFERSIZE equ 1024 |
34 | DEFAULTPORT equ 24800 |
33 | 35 | ||
34 | include '../macros.inc' |
36 | include '../macros.inc' |
Line 77... | Line 79... | ||
77 | 79 | ||
78 | invoke ini.get_str, path, str_remote, str_ip, buffer_ptr, 16, 0 |
80 | invoke ini.get_str, path, str_remote, str_ip, buffer_ptr, 16, 0 |
79 | test eax, eax |
81 | test eax, eax |
Line 80... | Line 82... | ||
80 | jnz error |
82 | jnz error |
- | 83 | ||
81 | 84 | invoke ini.get_int, path, str_remote, str_port, DEFAULTPORT |
|
Line 82... | Line 85... | ||
82 | invoke ini.get_int, path, str_remote, str_port, 24800 |
85 | xchg al, ah |
83 | mov [sockaddr1.port], ax |
86 | mov [sockaddr1.port], ax |
Line 335... | Line 338... | ||
335 | mousestate dd 0 |
338 | mousestate dd 0 |
Line 336... | Line 339... | ||
336 | 339 | ||
337 | 340 | ||
338 | sockaddr1: |
341 | sockaddr1: |
339 | dw AF_INET4 |
342 | dw AF_INET4 |
340 | .port dw 24800 |
343 | .port dw 0 |
Line 341... | Line 344... | ||
341 | .ip dd 192 + 168 shl 8 + 1 shl 16 + 115 shl 24 |
344 | .ip dd 192 + 168 shl 8 + 1 shl 16 + 115 shl 24 |
342 | rb 10 |
345 | rb 10 |