Rev 5721 | Rev 5905 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5721 | Rev 5903 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | dd 1, main, dataend, memory, memory, params, 0 |
13 | dd 1, main, dataend, memory, memory, params, 0 |
Line 14... | Line 14... | ||
14 | 14 | ||
15 | include "../../proc32.inc" |
15 | include "../../proc32.inc" |
16 | include "../../macros.inc" |
16 | include "../../macros.inc" |
- | 17 | include "../../dll.inc" |
|
17 | include "../../dll.inc" |
18 | include "../../cmp.inc" |
18 | include "../../string.inc" |
19 | include "../../string.inc" |
Line 19... | Line 20... | ||
19 | include "../../develop/libraries/box_lib/trunk/box_lib.mac" |
20 | include "../../develop/libraries/box_lib/trunk/box_lib.mac" |
Line 20... | Line 21... | ||
20 | 21 | ||
21 | include "lang.inc" |
22 | include "lang.inc" |
22 | 23 | ||
Line 23... | Line -... | ||
23 | if DEBUG eq 1 |
- | |
24 | include "../../debug.inc" |
- | |
25 | end if |
24 | if DEBUG eq 1 |
Line 26... | Line 25... | ||
26 | 25 | include "../../debug.inc" |
|
27 | include "macros.inc" |
26 | end if |
28 | 27 | ||
Line 132... | Line 131... | ||
132 | is_openimg: |
131 | is_openimg: |
133 | dd 0, 0, 0, 0, 0 |
132 | dd 0, 0, 0, 0, 0 |
134 | db 0 |
133 | db 0 |
135 | dd icons |
134 | dd icons |
Line -... | Line 135... | ||
- | 135 | ||
- | 136 | is_file_exists: |
|
- | 137 | dd 0, 0, 0, 0, buffer6 |
|
- | 138 | db 0 |
|
- | 139 | dd buffer |
|
136 | 140 | ||
137 | last_x dd -1 |
141 | last_x dd -1 |
Line 138... | Line 142... | ||
138 | last_y dd -1 |
142 | last_y dd -1 |
139 | 143 | ||
140 | if DEBUG eq 1 |
144 | if DEBUG eq 1 |
Line 141... | Line 145... | ||
141 | std_param db "~/sys/settings/assoc.ini", 0 |
145 | std_param db "~/sys/example.asm", 0 |
142 | end if |
146 | end if |
143 | 147 | ||
Line 231... | Line 235... | ||
231 | mcall 70, is_execute |
235 | mcall 70, is_execute |
232 | jmp exit |
236 | jmp exit |
Line 233... | Line 237... | ||
233 | 237 | ||
234 | open: |
238 | open: |
- | 239 | invoke libini.get_str, assoc_ini, assoc_ini.sec, slash, buffer, 2048, undefined |
|
- | 240 | cmpne [buffer], byte "$", @f |
|
235 | invoke libini.get_str, assoc_ini, assoc_ini.sec, slash, buffer, 2048, undefined |
241 | invoke libini.get_str, assoc_ini, buffer + 1, assoc_ini.exec, buffer, 2048, undefined |
- | 242 | cmpe [buffer], byte 0, ini_error |
|
236 | cmpe [buffer], byte 0, ini_error |
243 | @@: |
237 | mov eax, [param_s] |
244 | mov eax, [param_s] |
238 | mov [is_open + 8], eax |
245 | mov [is_open + 8], eax |
239 | mcall 70, is_open |
246 | mcall 70, is_open |
Line 705... | Line 712... | ||
705 | endp |
712 | endp |
Line 706... | Line 713... | ||
706 | 713 | ||
Line 707... | Line 714... | ||
707 | ;---------------------- |
714 | ;---------------------- |
- | 715 | ||
- | 716 | proc section_cb, _file, _sec |
|
- | 717 | ;; CHECK IF EXISTS |
|
- | 718 | invoke libini.get_str, assoc_ini, [_sec], assoc_ini.exec, buffer, 2048, undefined |
|
- | 719 | mcall 70, is_file_exists |
|
708 | 720 | cmpe ebx, -1, .exit |
|
709 | proc section_cb, _file, _sec |
721 | |
710 | mov ebx, [list.size] |
722 | mov ebx, [list.size] |
711 | shl ebx, 5 |
723 | shl ebx, 5 |
712 | add ebx, list |
724 | add ebx, list |
Line 719... | Line 731... | ||
719 | mov [ecx + list.icon], eax |
731 | mov [ecx + list.icon], eax |
720 | inc [list.size] |
732 | inc [list.size] |
721 | inc [sb_apps.max_area] |
733 | inc [sb_apps.max_area] |
722 | @@: |
734 | @@: |
723 | mov eax, 1 |
735 | mov eax, 1 |
- | 736 | .exit: |
|
724 | ret |
737 | ret |
725 | endp |
738 | endp |
Line 726... | Line 739... | ||
726 | 739 | ||
Line 750... | Line 763... | ||
750 | buffer rb 2048 |
763 | buffer rb 2048 |
751 | buffer2 rb 2048 |
764 | buffer2 rb 2048 |
752 | buffer3 rb 2048 |
765 | buffer3 rb 2048 |
753 | buffer4 rb 4096 |
766 | buffer4 rb 4096 |
754 | buffer5 rb 4096 |
767 | buffer5 rb 4096 |
- | 768 | buffer6 rb 2048 |
|
755 | params rb 2048 |
769 | params rb 2048 |
756 | _stack rb 2048 |
770 | _stack rb 2048 |
757 | memory:32,>10>4,>10>4,>3>9>3,>9>3,>214,>208,>207,>[win.y],>[win.x],> |
771 | memory:32,>10>4,>10>4,>3>9>3,>9>3,>214,>208,>207,>[win.y],>[win.x],> |
758 | 772 |