Rev 6903 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6903 | Rev 6904 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | ;; ;; |
12 | ;; ;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
13 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | URLMAXLEN = 65535 |
15 | URLMAXLEN = 65535 |
16 | FILENAMEMAXLEN = 1024 |
16 | FILENAMEMAXLEN = 1024 |
17 | __DEBUG_LEVEL__ = 1 |
17 | __DEBUG_LEVEL__ = 2 |
Line 18... | Line 18... | ||
18 | __DEBUG__ = 0 |
18 | __DEBUG__ = 1 |
19 | 19 | ||
20 | format binary as "" |
20 | format binary as "" |
21 | use32 |
21 | use32 |
Line 48... | Line 48... | ||
48 | mov [write_to_file.current_offset], eax |
48 | mov [write_to_file.current_offset], eax |
49 | mov [write_to_file.bufsize], eax |
49 | mov [write_to_file.bufsize], eax |
50 | mov [write_to_file.bufptr], eax |
50 | mov [write_to_file.bufptr], eax |
Line 51... | Line 51... | ||
51 | 51 | ||
52 | DEBUGF 1, "---- HTTP : Getting %s\n", [targeturl] |
52 | DEBUGF 1, "---- HTTP : Getting %s\n", [targeturl] |
53 | invoke HTTP_get, [targeturl], 0, 0, 0 |
53 | invoke HTTP_get, [targeturl], 0, FLAG_KEEPALIVE, 0 |
54 | cmp eax, 0 |
54 | cmp eax, 0 |
55 | je .http_error |
55 | je .http_error |
Line 56... | Line 56... | ||
56 | mov [httpstruct], eax |
56 | mov [httpstruct], eax |
Line 217... | Line 217... | ||
217 | movsb |
217 | movsb |
218 | mov [filelistoffset], esi |
218 | mov [filelistoffset], esi |
Line 219... | Line 219... | ||
219 | 219 | ||
220 | ;; current_filename is now set to the name of the file |
220 | ;; current_filename is now set to the name of the file |
- | 221 | ;; current_url is now set to the name of the file we will get after download |
|
221 | ;; current_url is now set to the name of the file we will get after download |
222 | DEBUGF 2, "-------- [START] Fetching : %s\n", current_url |
- | 223 | stdcall get_file_over_http, current_url, current_filename |
|
222 | stdcall get_file_over_http, current_url, current_filename |
224 | DEBUGF 2, "-------- [END] Fetching : %s\n", current_url |
Line 223... | Line 225... | ||
223 | jmp .get_next_file |
225 | jmp .get_next_file |
- | 226 | ||
224 | 227 | .all_files_done: |
|
225 | .all_files_done: |
228 | DEBUGF 1, "-------------------------\n" |
226 | DEBUGF 1, "All FILES DONE!\n" |
- | |
Line 227... | Line 229... | ||
227 | ;; Inform user that all files are done |
229 | DEBUGF 1, "NETSURF INSTALLED. Enjoy!\n" |
228 | ;; print 'fuck off' |
230 | ;; Inform user that all files are done |
229 | 231 | ||
Line 230... | Line 232... | ||
230 | .all_files_done_error: |
232 | .all_files_done_error: |
231 | DEBUGF 1, "FUCKED BIG TIME with eax = %u!\n", eax |
233 | DEBUGF 1, "FATAL ERROR: FAILED.\n", eax |
232 | mcall -1 |
234 | mcall -1 |
Line 250... | Line 252... | ||
250 | dirname_res_pointers db '/tmp0/1/res/pointers', 0 |
252 | dirname_res_pointers db '/tmp0/1/res/pointers', 0 |
251 | dirname_res_throbber db '/tmp0/1/res/throbber', 0 |
253 | dirname_res_throbber db '/tmp0/1/res/throbber', 0 |
252 | dirname_res_icons db '/tmp0/1/res/icons', 0 |
254 | dirname_res_icons db '/tmp0/1/res/icons', 0 |
Line 253... | Line 255... | ||
253 | 255 | ||
- | 256 | url db 'www.ashmew2.me/',0 |
|
- | 257 | ||
254 | url db 'www.ashmew2.me/',0 |
258 | filelist db 'nskolibrios', 0 |
255 | filelist db 'res/adblock.css', 0 |
259 | db 'res/adblock.css', 0 |
256 | db 'res/quirks.css', 0 |
260 | db 'res/quirks.css', 0 |
257 | db 'res/Messages', 0 |
261 | db 'res/Messages', 0 |
258 | db 'res/licence.html', 0 |
262 | db 'res/licence.html', 0 |
259 | db 'res/default.css', 0 |
263 | db 'res/default.css', 0 |
Line 303... | Line 307... | ||
303 | db 'res/icons/stop.png', 0 |
307 | db 'res/icons/stop.png', 0 |
304 | db 'res/icons/scrolld.png', 0 |
308 | db 'res/icons/scrolld.png', 0 |
305 | db 'res/icons/stop_g.png', 0 |
309 | db 'res/icons/stop_g.png', 0 |
306 | db 'res/icons/home.png', 0 |
310 | db 'res/icons/home.png', 0 |
307 | db 'res/icons/reload.png', 0 |
311 | db 'res/icons/reload.png', 0 |
308 | db 'nskolibrios', 0 |
- | |
309 | db 0 |
312 | db 0 |
Line 310... | Line 313... | ||
310 | 313 | ||
311 | current_url rb URLMAXLEN |
314 | current_url rb URLMAXLEN |
312 | filelistoffset dd filelist |
315 | filelistoffset dd filelist |