Subversion Repositories Kolibri OS

Rev

Rev 6773 | Rev 7092 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6773 Rev 6977
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2014-2015. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2014-2017. All rights reserved.    ;;
4
;; Distributed under terms of the GNU General Public License       ;;
4
;; Distributed under terms of the GNU General Public License       ;;
5
;;                                                                 ;;
5
;;                                                                 ;;
6
;;  downloader.asm - HTTP client for KolibriOS                     ;;
6
;;  downloader.asm - HTTP client for KolibriOS                     ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;      hidnplayr@kolibrios.org                                    ;;
8
;;      hidnplayr@kolibrios.org                                    ;;
Line 67... Line 67...
67
; Initialise OpenDialog
67
; Initialise OpenDialog
68
        invoke  OpenDialog_Init, OpenDialog_data
68
        invoke  OpenDialog_Init, OpenDialog_data
Line 69... Line 69...
69
 
69
 
70
; If user provided parameters, start download right away!
70
; If user provided parameters, start download right away!
71
        cmp     byte[url], 0
71
        cmp     byte[url], 0
Line 72... Line 72...
72
        jne     download
72
        jne     display_url_and_download
Line 73... Line 73...
73
 
73
 
74
        mov     [OpenDialog_data.draw_window], draw_window
74
        mov     [OpenDialog_data.draw_window], draw_window
Line 116... Line 116...
116
 
116
 
117
open_file:
117
open_file:
118
        mcall   70, fileopen
118
        mcall   70, fileopen
Line -... Line 119...
-
 
119
        jmp     mainloop
-
 
120
 
-
 
121
display_url_and_download:
-
 
122
        xor     al, al
-
 
123
        mov     ecx, 4096
-
 
124
        mov     edi, url
-
 
125
        repne scasb
Line 119... Line 126...
119
        jmp     mainloop
126
        sub     edi, url+1
120
 
127
        mov     [edit1.size], edi
121
 
128
 
122
download:
129
download: