2007-02-12 06:14:58 +01:00
|
|
|
|
; RDsave <20><><EFBFBD> Kolibri (0.6.5.0 <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
2013-11-11 23:49:12 +01:00
|
|
|
|
; Save RAM-disk to hard or floppy drive
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 15:18:23 +01:00
|
|
|
|
; Mario79 2005
|
2007-02-12 06:14:58 +01:00
|
|
|
|
; Heavyiron 12.02.2007
|
2009-05-11 03:57:18 +02:00
|
|
|
|
; <Lrz> 11.05.2009 - <20><><EFBFBD> ࠡ<><E0A0A1><EFBFBD> <20>㦭<EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD> box_lib.obj
|
2013-11-11 23:49:12 +01:00
|
|
|
|
; Mario79 08.09.2010 - select path with OpenDialog,keys 1,2,3,4 for select options
|
|
|
|
|
; Heavyiron 01.12.2013 - new logic
|
2007-02-12 06:14:58 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 15:18:23 +01:00
|
|
|
|
appname equ 'RDsave '
|
2013-12-02 23:59:48 +01:00
|
|
|
|
version equ '1.43'
|
2014-04-09 21:55:14 +02:00
|
|
|
|
debug equ no
|
2013-06-10 19:09:13 +02:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
use32 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 32-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ०<><E0A5A6> <20><>ᥬ<EFBFBD><E1A5AC><EFBFBD><EFBFBD><EFBFBD>
|
2013-11-11 23:49:12 +01:00
|
|
|
|
org 0x0 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
db 'MENUET01' ; 8-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䨪<EFBFBD><E4A8AA><EFBFBD><EFBFBD> MenuetOS
|
|
|
|
|
dd 0x01 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>ᥣ<EFBFBD><E1A5A3> 1)
|
|
|
|
|
dd START ; <20><><EFBFBD><EFBFBD><EFBFBD> <20><>ࢮ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dd IM_END ; ࠧ<><E0A0A7><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC>
|
|
|
|
|
dd I_END ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
dd stacktop ; <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>設<EFBFBD> <20>⥪<EFBFBD>
|
|
|
|
|
dd PARAMS ; <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><>ࠬ<EFBFBD><E0A0AC>
|
2013-11-11 23:49:12 +01:00
|
|
|
|
dd cur_dir_path
|
2009-05-11 03:57:18 +02:00
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
include 'lang.inc'
|
|
|
|
|
include '../../../macros.inc'
|
|
|
|
|
if debug eq yes
|
|
|
|
|
include '../../../debug.inc'
|
|
|
|
|
end if
|
|
|
|
|
include '../../../proc32.inc'
|
|
|
|
|
include '../../../dll.inc'
|
2009-06-06 20:34:36 +02:00
|
|
|
|
include '../../../develop/libraries/box_lib/load_lib.mac'
|
2010-01-09 23:01:26 +01:00
|
|
|
|
include '../../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2013-11-11 23:49:12 +01:00
|
|
|
|
include 'str.inc'
|
2007-02-12 06:14:58 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
@use_library
|
2007-02-12 06:14:58 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ----------------------------------------------
|
|
|
|
|
;---------------------------------------------------------------------
|
2009-05-11 03:57:18 +02:00
|
|
|
|
align 4
|
2007-02-12 06:14:58 +01:00
|
|
|
|
START:
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 68,11
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
|
|
|
|
load_libraries l_libs_start,end_l_libs
|
2014-04-09 21:55:14 +02:00
|
|
|
|
inc eax
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz close
|
|
|
|
|
|
|
|
|
|
stdcall dll.Init,[init_lib]
|
|
|
|
|
|
|
|
|
|
invoke ini_get_int,ini_file,asettings,aautoclose,0
|
|
|
|
|
mov [autoclose],eax
|
|
|
|
|
invoke ini_get_str,ini_file,apath,apath,fname_buf,4096,path
|
|
|
|
|
stdcall _lstrcpy,ini_path,fname_buf
|
|
|
|
|
stdcall _lstrcpy,filename_area,start_temp_file_name
|
|
|
|
|
|
|
|
|
|
mov eax,PARAMS
|
|
|
|
|
cmp byte[eax], 0
|
|
|
|
|
je no_params
|
|
|
|
|
cmp byte[eax], 'h'
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[eax], 'H'
|
|
|
|
|
jne .no_h
|
2013-11-11 23:49:12 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mov [hidden],1
|
|
|
|
|
jmp no_params
|
2013-11-11 23:49:12 +01:00
|
|
|
|
.no_h:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mov [param],1
|
|
|
|
|
stdcall _lstrcpy,fname_buf,eax
|
|
|
|
|
mov ah,2
|
|
|
|
|
jmp noclose
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-21 14:20:19 +01:00
|
|
|
|
no_params:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
stdcall _lstrcpy,check_dir,ini_path
|
|
|
|
|
call check_path
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz path_ok
|
|
|
|
|
cmp eax,6
|
|
|
|
|
je path_ok
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
if debug eq yes
|
|
|
|
|
dps 'read_folder_error'
|
|
|
|
|
newline
|
|
|
|
|
end if
|
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-25 07:35:17 +01:00
|
|
|
|
default_path:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
stdcall _lstrcpy,fname_buf,communication_area_default_path
|
|
|
|
|
mov [hidden],0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
;OpenDialog initialisation
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push dword OpenDialog_data
|
|
|
|
|
call [OpenDialog_Init]
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
; prepare for PathShow
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push dword PathShow_data_1
|
|
|
|
|
call [PathShow_prepare]
|
2013-11-25 07:35:17 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 40,0x00000027
|
2013-11-25 07:35:17 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
call draw_window
|
|
|
|
|
mov ah,3
|
|
|
|
|
jmp noclose
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
path_ok:
|
|
|
|
|
;OpenDialog initialisation
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push dword OpenDialog_data
|
|
|
|
|
call [OpenDialog_Init]
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
|
|
|
|
; prepare for PathShow
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push dword PathShow_data_1
|
|
|
|
|
call [PathShow_prepare]
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 40,0x00000027
|
2007-02-12 06:14:58 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp [hidden],1
|
|
|
|
|
jne red
|
|
|
|
|
mov ah,2
|
|
|
|
|
jmp noclose
|
2013-11-11 23:49:12 +01:00
|
|
|
|
red:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
call draw_window
|
2007-02-12 06:14:58 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
still:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 10
|
2007-02-12 06:14:58 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
dec eax ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2><EFBFBD> <20><><EFBFBD><EFBFBD>?
|
|
|
|
|
jz red ; <20> <20><> - <20><> <20><><EFBFBD><EFBFBD><EFBFBD> red
|
|
|
|
|
dec eax
|
|
|
|
|
jz key
|
|
|
|
|
dec eax
|
|
|
|
|
jz button
|
|
|
|
|
jmp still
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2007-02-12 06:14:58 +01:00
|
|
|
|
button:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 17 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>䨪<EFBFBD><E4A8AA><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>⮩ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
cmp ah,1 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> id=1("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")?
|
|
|
|
|
jne noclose
|
2009-05-11 03:57:18 +02:00
|
|
|
|
close:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall -1 ; <20>㭪<EFBFBD><E3ADAA><EFBFBD> -1: <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC>
|
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
key:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 2
|
|
|
|
|
cmp ah,0x1b
|
|
|
|
|
je close
|
|
|
|
|
cmp ah,0x0D
|
|
|
|
|
jne @f
|
|
|
|
|
mov ah,2
|
|
|
|
|
jmp noclose
|
2013-11-11 23:49:12 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp ah,9h
|
|
|
|
|
jne still
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2007-02-12 06:14:58 +01:00
|
|
|
|
noclose:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mov ecx,fname_buf
|
|
|
|
|
push 16
|
|
|
|
|
mov ebx,1
|
|
|
|
|
cmp byte[ecx+1],'f'
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[ecx+1],'F'
|
|
|
|
|
jne not_fdd
|
2013-11-11 23:49:12 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp byte[ecx+4],'1'
|
|
|
|
|
jne @f
|
|
|
|
|
cmp ah,2
|
|
|
|
|
je doit
|
2013-11-11 23:49:12 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
inc ebx
|
|
|
|
|
cmp ah,2
|
|
|
|
|
je doit
|
2013-11-11 23:49:12 +01:00
|
|
|
|
not_fdd:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push 18
|
|
|
|
|
mov ebx,6 ; 18.6 = save to specified folder
|
|
|
|
|
cmp ah,2
|
|
|
|
|
je doit
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
|
|
|
|
; invoke OpenDialog
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push dword OpenDialog_data
|
|
|
|
|
call [OpenDialog_Start]
|
|
|
|
|
cmp [OpenDialog_data.status],1
|
|
|
|
|
jne still
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
|
|
|
|
; prepare for PathShow
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push dword PathShow_data_1
|
|
|
|
|
call [PathShow_prepare]
|
|
|
|
|
call draw_window
|
|
|
|
|
mov ah,2
|
|
|
|
|
jmp noclose
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
2007-06-04 11:21:07 +02:00
|
|
|
|
doit:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp [param],0
|
|
|
|
|
jne @f
|
|
|
|
|
call save_ini
|
2013-11-21 14:20:19 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp byte[ecx+1],'r'
|
|
|
|
|
je @f
|
|
|
|
|
cmp byte[ecx+1],'R'
|
2014-09-27 16:26:29 +02:00
|
|
|
|
je @f
|
|
|
|
|
cmp byte[ecx],'/'
|
|
|
|
|
je not_rd
|
2013-11-21 14:20:19 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mov edx,rdError
|
|
|
|
|
call print_err
|
|
|
|
|
jmp still
|
2013-11-21 14:20:19 +01:00
|
|
|
|
not_rd:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp [hidden],0
|
|
|
|
|
jne @f
|
|
|
|
|
pusha
|
|
|
|
|
stdcall _lstrcpy,msg,label2
|
|
|
|
|
mov eax,[sc.work_text]
|
|
|
|
|
or eax,0xc0000088
|
|
|
|
|
mov [color],eax
|
|
|
|
|
call print_msg
|
|
|
|
|
popa
|
|
|
|
|
@@:
|
|
|
|
|
pop eax
|
|
|
|
|
mcall
|
|
|
|
|
call check_for_error
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
check_for_error: ;<3B><>ࠡ<EFBFBD><E0A0A1>稪 <20>訡<EFBFBD><E8A8A1>
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz print_ok
|
|
|
|
|
cmp ebx,6
|
|
|
|
|
je @f
|
|
|
|
|
mov edx,error11
|
|
|
|
|
jmp print_err
|
2013-11-25 07:35:17 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp eax, 11
|
|
|
|
|
ja .unknown
|
|
|
|
|
mov edx, [errors+eax*4]
|
|
|
|
|
stdcall _lstrcpy,msg,error
|
|
|
|
|
stdcall _lstrcat,msg,edx
|
|
|
|
|
mov edx,msg
|
|
|
|
|
jmp print_err
|
2013-11-11 23:49:12 +01:00
|
|
|
|
.unknown:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mov edx, aUnknownError
|
2013-11-25 07:35:17 +01:00
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
print_err:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
stdcall _lstrlen,ini_path
|
|
|
|
|
pusha
|
|
|
|
|
invoke ini_set_str,ini_file,apath,apath,ini_path,eax
|
|
|
|
|
popa
|
|
|
|
|
stdcall _lstrcpy,msg,edx
|
|
|
|
|
cmp [hidden],1
|
|
|
|
|
je @f
|
|
|
|
|
cmp [param],1
|
|
|
|
|
je @f
|
|
|
|
|
mov ecx,[sc.work_text]
|
|
|
|
|
or ecx,0xc0880000
|
|
|
|
|
mov [color],ecx
|
|
|
|
|
call print_msg
|
|
|
|
|
ret
|
2013-11-21 14:20:19 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
stdcall _lstrcpy, ntf_msg, ntf_start
|
|
|
|
|
stdcall _lstrcat, ntf_msg, edx
|
|
|
|
|
stdcall _lstrcat, ntf_msg, ntf_end_e
|
|
|
|
|
mov dword [is_notify + 8], ntf_msg
|
|
|
|
|
mcall 70, is_notify
|
|
|
|
|
mov [param],0
|
|
|
|
|
mov [hidden],0
|
|
|
|
|
stdcall _lstrcpy,fname_buf,ini_path
|
|
|
|
|
jmp no_params
|
2013-11-25 07:35:17 +01:00
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
print_ok:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
cmp [hidden],1
|
|
|
|
|
je @f
|
|
|
|
|
cmp [param],1
|
|
|
|
|
je @f
|
|
|
|
|
stdcall _lstrcpy,msg,ok
|
|
|
|
|
mov ecx,[sc.work_text]
|
|
|
|
|
or ecx,0xc0008800
|
|
|
|
|
mov [color],ecx
|
|
|
|
|
call print_msg
|
|
|
|
|
mcall 5,100
|
|
|
|
|
cmp [autoclose],1
|
|
|
|
|
je close
|
|
|
|
|
ret
|
2013-12-02 23:59:48 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
stdcall _lstrcpy,msg,ok
|
|
|
|
|
stdcall _lstrcat,msg,fname_buf
|
|
|
|
|
stdcall _lstrcpy, ntf_msg, ntf_start
|
|
|
|
|
stdcall _lstrcat, ntf_msg, msg
|
|
|
|
|
stdcall _lstrcat, ntf_msg, ntf_end_o
|
2014-04-09 21:59:50 +02:00
|
|
|
|
mov edx,ntf_msg
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mov dword [is_notify + 8], edx
|
|
|
|
|
mcall 70, is_notify
|
|
|
|
|
mcall 5,100
|
|
|
|
|
jmp close
|
2013-12-02 23:59:48 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
print_msg:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 13,<5,380>,<96,10>,[sc.work]
|
|
|
|
|
stdcall _lstrlen,msg
|
|
|
|
|
lea eax,[eax+eax*2]
|
|
|
|
|
add eax,eax
|
|
|
|
|
mov ebx,390
|
|
|
|
|
sub ebx,eax
|
|
|
|
|
shl ebx,15
|
|
|
|
|
add ebx,96
|
|
|
|
|
mcall 4, ,[color],msg, ,[sc.work]
|
|
|
|
|
ret
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
draw_PathShow:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
pusha
|
|
|
|
|
mcall 13,<15,280>,<32,16>,0xffffff
|
|
|
|
|
push dword PathShow_data_1
|
|
|
|
|
call [PathShow_draw]
|
|
|
|
|
popa
|
|
|
|
|
ret
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
save_ini:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
pusha
|
|
|
|
|
stdcall _lstrlen,fname_buf
|
|
|
|
|
invoke ini_set_str,ini_file,apath,apath,fname_buf,eax
|
|
|
|
|
invoke ini_set_int,ini_file,asettings,aautoclose,[autoclose]
|
|
|
|
|
popa
|
|
|
|
|
ret
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
check_path:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
stdcall _lstrlen,check_dir
|
|
|
|
|
add eax,check_dir
|
2013-11-11 23:49:12 +01:00
|
|
|
|
@@:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
dec eax
|
|
|
|
|
cmp byte [eax],'/'
|
|
|
|
|
jne @b
|
|
|
|
|
mov byte [eax+1],0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 70,read_folder
|
|
|
|
|
ret
|
2007-02-12 06:14:58 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;--- Draw window ---------------------------------------------------
|
2007-02-12 06:14:58 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
draw_window:
|
2014-09-27 16:26:29 +02:00
|
|
|
|
mcall 48,3,sc,sizeof.system_colors
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 12,1
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
2021-07-08 20:47:59 +02:00
|
|
|
|
mcall 48,4
|
|
|
|
|
mov ecx,200*65536+111
|
|
|
|
|
add ecx,eax
|
|
|
|
|
|
|
|
|
|
mov edx,[sc.work]
|
|
|
|
|
or edx,0x34000000
|
|
|
|
|
mcall 0,<200,400>,, , ,title
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
;buttons
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 8,<198,70>,<68,20>,1,[sc.work_button]
|
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<125,70>,
|
|
|
|
|
inc edx
|
|
|
|
|
mcall ,<300,75>,<30,20>
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
;labels
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mov ecx,[sc.work_button_text]
|
|
|
|
|
or ecx,0x80000000
|
|
|
|
|
mcall 4,<134,75>, ,save
|
|
|
|
|
mcall ,<215,75>, ,cancel
|
|
|
|
|
mcall ,<315,36>, ,select
|
|
|
|
|
|
2018-11-10 14:07:49 +01:00
|
|
|
|
m2m dword [frame_data.font_backgr_color],[sc.work]
|
|
|
|
|
m2m dword [frame_data.font_color],[sc.work_text]
|
|
|
|
|
m2m dword [frame_data.ext_fr_col],[sc.work_graph]
|
2020-04-14 13:29:55 +02:00
|
|
|
|
m2m dword [frame_data.int_fr_col],[sc.work_light]
|
2018-11-10 14:07:49 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
push dword frame_data
|
|
|
|
|
call [Frame_draw]
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
call draw_PathShow
|
|
|
|
|
call print_msg
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
mcall 12,2
|
|
|
|
|
ret
|
2007-02-12 06:14:58 +01:00
|
|
|
|
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;--- Data ----------------------------------------------------------
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2007-02-12 06:14:58 +01:00
|
|
|
|
if lang eq ru
|
2014-04-09 21:55:14 +02:00
|
|
|
|
save db '<27><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD>',0
|
|
|
|
|
cancel db '<27>⬥<EFBFBD><E2ACA5>',0
|
|
|
|
|
select db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
|
|
|
|
label1 db ' <20><>ࠧ <20>㤥<EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD> <20>: ',0
|
|
|
|
|
label2 db '<27><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><>ࠧ<EFBFBD>...',0
|
|
|
|
|
ok db 'RAM-<2D><><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD> <20>ᯥ譮 ',0
|
|
|
|
|
error1 db '<27><> <20><>।<EFBFBD><E0A5A4><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>/<2F><><EFBFBD> ࠧ<><E0A0A7><EFBFBD> <20><><EFBFBD>⪮<EFBFBD><E2AAAE> <20><>᪠',0
|
|
|
|
|
error2 db '<27>㭪<EFBFBD><E3ADAA><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ন<EFBFBD><E0A6A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 䠩<><E4A0A9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD>',0
|
|
|
|
|
error3 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⭠<EFBFBD> 䠩<><E4A0A9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD>',0
|
|
|
|
|
error4 db '<27><>࠭<EFBFBD><E0A0AD>... <20>訡<EFBFBD><E8A8A1> 4',0
|
|
|
|
|
error5 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>騩 <20><><EFBFBD><EFBFBD>',0
|
|
|
|
|
error6 db '䠩<> <20><><EFBFBD><EFBFBD><EFBFBD>稫<EFBFBD><E7A8AB>',0
|
|
|
|
|
error7 db '㪠<><E3AAA0>⥫<EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ਫ<EFBFBD><E0A8AB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
|
|
|
|
error8 db '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
|
|
|
|
error9 db '䠩<><E4A0A9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ࠧ<><E0A0A7>襭<EFBFBD>',0
|
|
|
|
|
error10 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
|
|
|
|
error11 db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD>ன<EFBFBD>⢠',0
|
|
|
|
|
aUnknownError db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⭠<EFBFBD> <20>訡<EFBFBD><E8A8A1>',0
|
|
|
|
|
rdError db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD> <20><>ࠧ <20> ᠬ<><E1A0AC><EFBFBD> ᥡ<>',0
|
|
|
|
|
error db '<27>訡<EFBFBD><E8A8A1>: ',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2007-08-07 22:42:45 +02:00
|
|
|
|
else if lang eq et
|
2014-04-09 21:55:14 +02:00
|
|
|
|
save db 'Salvesta',0
|
|
|
|
|
cancel db 'Cancel',0
|
|
|
|
|
select db ' Valige',0
|
|
|
|
|
label1 db ' RAM-drive will be saved as: ',0
|
|
|
|
|
label2 db 'Saving in progress...',0
|
|
|
|
|
ok db 'RAM-ketas salvestatud edukalt ',0
|
|
|
|
|
error1 db 'hard disk base and/or partition not defined',0
|
|
|
|
|
error2 db 'the file system does not support this function',0
|
|
|
|
|
error3 db 'tundmatu failis<69>steem',0
|
|
|
|
|
error4 db 'strange... Error 4',0
|
|
|
|
|
error5 db 'vigane teekond',0
|
|
|
|
|
error6 db 'end of file',0
|
|
|
|
|
error7 db 'pointer is outside of application memory',0
|
|
|
|
|
error8 db 'ketas t<>is',0
|
|
|
|
|
error9 db 'FAT tabel vigane',0
|
|
|
|
|
error10 db 'juurdep<65><70>s keelatud',0
|
|
|
|
|
error11 db 'Seadme viga',0
|
|
|
|
|
aUnknownError db 'Tundmatu viga',0
|
|
|
|
|
rdError db "You can't save image on itself",0
|
|
|
|
|
error db 'Viga: ',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2013-06-10 19:09:13 +02:00
|
|
|
|
else if lang eq it
|
2014-04-09 21:55:14 +02:00
|
|
|
|
save db ' Salva',0
|
|
|
|
|
cancel db 'Cancel',0
|
|
|
|
|
select db 'Seleziona',0
|
|
|
|
|
label1 db ' RAM-drive will be saved as: ',0
|
|
|
|
|
label2 db 'Saving in progress...',0
|
|
|
|
|
ok db 'Il RAM-drivet e stato salvato ',0
|
|
|
|
|
error1 db 'hard disk base and/or partition not defined',0
|
|
|
|
|
error2 db 'the file system does not support this function',0
|
|
|
|
|
error3 db 'filesystem sconosciuto',0
|
|
|
|
|
error4 db 'strange... Error 4',0
|
|
|
|
|
error5 db 'percorso non valido',0
|
|
|
|
|
error6 db 'end of file',0
|
|
|
|
|
error7 db 'pointer is outside of application memory',0
|
|
|
|
|
error8 db 'disco pieno',0
|
|
|
|
|
error9 db 'tabella FAT corrotta',0
|
|
|
|
|
error10 db 'accesso negato',0
|
|
|
|
|
error11 db 'Errore di device',0
|
|
|
|
|
aUnknownError db 'Errore sconosciuto',0
|
|
|
|
|
rdError db "You can't save image on itself",0
|
|
|
|
|
error db 'Errore: ',0
|
2013-06-10 19:09:13 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2007-02-12 06:14:58 +01:00
|
|
|
|
else
|
2014-04-09 21:55:14 +02:00
|
|
|
|
save db ' Save',0
|
|
|
|
|
cancel db 'Cancel',0
|
|
|
|
|
select db ' Select',0
|
|
|
|
|
label1 db ' RAM-drive will be saved as: ',0
|
|
|
|
|
label2 db 'Saving in progress...',0
|
|
|
|
|
ok db 'RAM-drive was saved successfully ',0
|
|
|
|
|
error1 db 'hard disk base and/or partition not defined',0
|
|
|
|
|
error2 db 'the file system does not support this function',0
|
|
|
|
|
error3 db 'unknown file system',0
|
|
|
|
|
error4 db 'strange... Error 4',0
|
|
|
|
|
error5 db 'incorrect path',0
|
|
|
|
|
error6 db 'end of file',0
|
|
|
|
|
error7 db 'pointer is outside of application memory',0
|
|
|
|
|
error8 db 'disk is full',0
|
|
|
|
|
error9 db 'file structure is destroyed',0
|
|
|
|
|
error10 db 'access denied',0
|
|
|
|
|
error11 db 'Device error',0
|
|
|
|
|
aUnknownError db 'Unknown error',0
|
|
|
|
|
rdError db "You can't save image on itself",0
|
|
|
|
|
error db 'Error: ',0
|
2006-11-02 15:18:23 +01:00
|
|
|
|
end if
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2014-04-09 21:55:14 +02:00
|
|
|
|
ntf_start db '"RDSave\n', 0
|
|
|
|
|
ntf_end_o db '" -tO', 0
|
|
|
|
|
ntf_end_e db '" -tE', 0
|
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-11 23:49:12 +01:00
|
|
|
|
errors:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
dd ok
|
|
|
|
|
dd error1
|
|
|
|
|
dd error2
|
|
|
|
|
dd error3
|
|
|
|
|
dd error4
|
|
|
|
|
dd error5
|
|
|
|
|
dd error6
|
|
|
|
|
dd error7
|
|
|
|
|
dd error8
|
|
|
|
|
dd error9
|
|
|
|
|
dd error10
|
|
|
|
|
dd error11
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
title db appname,version,0
|
2013-11-21 14:20:19 +01:00
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;Lib_DATA
|
|
|
|
|
;<3B>ᥣ<EFBFBD><E1A5A3> ᮡ<><EFBFBD><EEA4A0> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD>⥫쭮<E2A5AB><ECADAE><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>.
|
2014-04-09 21:55:14 +02:00
|
|
|
|
system_dir_Boxlib db '/sys/lib/box_lib.obj',0
|
|
|
|
|
system_dir_ProcLib db '/sys/lib/proc_lib.obj',0
|
|
|
|
|
system_dir_libini db '/sys/lib/libini.obj',0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
2009-05-11 03:57:18 +02:00
|
|
|
|
head_f_i:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
head_f_l db 'System error',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
err_message_found_lib1 db 'box_lib.obj - Not found!',0
|
|
|
|
|
err_message_found_lib2 db 'proc_lib.obj - Not found!',0
|
|
|
|
|
err_message_found_lib3 db 'libini.obj - Not found!',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
err_message_import1 db 'box_lib.obj - Wrong import!',0
|
|
|
|
|
err_message_import2 db 'proc_lib.obj - Wrong import!',0
|
|
|
|
|
err_message_import3 db 'libini.obj - Wrong import!',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
l_libs_start:
|
2009-05-11 03:57:18 +02:00
|
|
|
|
|
2010-09-07 22:43:41 +02:00
|
|
|
|
library01 l_libs system_dir_Boxlib+9, cur_dir_path, library_path, system_dir_Boxlib, \
|
|
|
|
|
err_message_found_lib1, head_f_l, Box_lib_import, err_message_import1, head_f_i
|
2009-05-11 03:57:18 +02:00
|
|
|
|
|
2010-09-07 22:43:41 +02:00
|
|
|
|
library02 l_libs system_dir_ProcLib+9, cur_dir_path, library_path, system_dir_ProcLib, \
|
|
|
|
|
err_message_found_lib2, head_f_l, ProcLib_import, err_message_import2, head_f_i
|
2009-05-11 03:57:18 +02:00
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
library03 l_libs system_dir_libini+9, cur_dir_path, library_path, system_dir_libini, \
|
|
|
|
|
err_message_found_lib3, head_f_l, libini_import, err_message_import3, head_f_i
|
|
|
|
|
|
2010-09-07 22:43:41 +02:00
|
|
|
|
end_l_libs:
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
OpenDialog_data:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.type dd 1 ; Save
|
|
|
|
|
.procinfo dd procinfo ;+4
|
|
|
|
|
.com_area_name dd communication_area_name ;+8
|
|
|
|
|
.com_area dd 0 ;+12
|
|
|
|
|
.opendir_path dd temp_dir_path ;+16
|
|
|
|
|
.dir_default_path dd communication_area_default_path ;+20
|
|
|
|
|
.start_path dd open_dialog_path ;+24
|
|
|
|
|
.draw_window dd draw_window ;+28
|
|
|
|
|
.status dd 0 ;+32
|
|
|
|
|
.openfile_pach dd fname_buf ;+36
|
|
|
|
|
.filename_area dd filename_area ;+40
|
|
|
|
|
.filter_area dd Filter
|
2010-09-07 22:43:41 +02:00
|
|
|
|
.x:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.x_size dw 420 ;+48 ; Window X size
|
|
|
|
|
.x_start dw 200 ;+50 ; Window X position
|
2010-09-07 22:43:41 +02:00
|
|
|
|
.y:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.y_size dw 320 ;+52 ; Window y size
|
|
|
|
|
.y_start dw 120 ;+54 ; Window Y position
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
|
|
|
|
communication_area_name:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
db 'FFFFFFFF_open_dialog',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
open_dialog_path:
|
2010-11-15 19:47:23 +01:00
|
|
|
|
if __nightbuild eq yes
|
|
|
|
|
db '/sys/MANAGERS/opendial',0
|
|
|
|
|
else
|
|
|
|
|
db '/sys/File Managers/opendial',0
|
|
|
|
|
end if
|
2013-11-11 23:49:12 +01:00
|
|
|
|
communication_area_default_path:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
db '/',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
|
|
|
|
Filter:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
dd Filter.end - Filter
|
2010-09-07 22:43:41 +02:00
|
|
|
|
.1:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
db 'IMG',0
|
|
|
|
|
db 'IMA',0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
.end:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
db 0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
start_temp_file_name: db 'kolibri.img',0
|
2006-11-02 15:18:23 +01:00
|
|
|
|
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
ProcLib_import:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
OpenDialog_Init dd aOpenDialog_Init
|
|
|
|
|
OpenDialog_Start dd aOpenDialog_Start
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
aOpenDialog_Init db 'OpenDialog_init',0
|
|
|
|
|
aOpenDialog_Start db 'OpenDialog_start',0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
PathShow_data_1:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.type dd 0 ;+0
|
|
|
|
|
.start_y dw 36 ;+4
|
|
|
|
|
.start_x dw 20 ;+6
|
|
|
|
|
.font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1
|
|
|
|
|
.area_size_x dw 270 ;+10
|
|
|
|
|
.font_number dd 0 ;+12 ; 0 - monospace, 1 - variable
|
|
|
|
|
.background_flag dd 0 ;+16
|
|
|
|
|
.font_color dd 0 ;+20
|
|
|
|
|
.background_color dd 0 ;+24
|
|
|
|
|
.text_pointer dd fname_buf ;+28
|
|
|
|
|
.work_area_pointer dd text_work_area ;+32
|
|
|
|
|
.temp_text_length dd 0 ;+36
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
align 4
|
2013-06-10 19:09:13 +02:00
|
|
|
|
Box_lib_import:
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;edit_box_draw dd aEdit_box_draw
|
|
|
|
|
;edit_box_key dd aEdit_box_key
|
|
|
|
|
;edit_box_mouse dd aEdit_box_mouse
|
|
|
|
|
;version_ed dd aVersion_ed
|
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
PathShow_prepare dd sz_PathShow_prepare
|
|
|
|
|
PathShow_draw dd sz_PathShow_draw
|
|
|
|
|
Frame_draw dd sz_Frame_draw
|
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
;aEdit_box_draw db 'edit_box',0
|
|
|
|
|
;aEdit_box_key db 'edit_box_key',0
|
|
|
|
|
;aEdit_box_mouse db 'edit_box_mouse',0
|
|
|
|
|
;aVersion_ed db 'version_ed',0
|
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
sz_PathShow_prepare db 'PathShow_prepare',0
|
|
|
|
|
sz_PathShow_draw db 'PathShow_draw',0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
sz_Frame_draw db 'frame_draw',0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;szVersion_frame db 'version_frame',0
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
frame_data:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.type dd 0 ;+0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
.x:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.x_size dw 374 ;+4
|
|
|
|
|
.x_start dw 8 ;+6
|
2013-11-11 23:49:12 +01:00
|
|
|
|
.y:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.y_size dw 45 ;+8
|
|
|
|
|
.y_start dw 17 ;+10
|
|
|
|
|
.ext_fr_col dd 0x888888 ;+12
|
|
|
|
|
.int_fr_col dd 0xffffff ;+16
|
|
|
|
|
.draw_text_flag dd 1 ;+20
|
|
|
|
|
.text_pointer dd label1 ;+24
|
|
|
|
|
.text_position dd 0 ;+28
|
|
|
|
|
.font_number dd 0 ;+32
|
|
|
|
|
.font_size_y dd 9 ;+36
|
|
|
|
|
.font_color dd 0x0 ;+40
|
|
|
|
|
.font_backgr_color dd 0xdddddd ;+44
|
2013-11-11 23:49:12 +01:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
libini_import:
|
|
|
|
|
init_lib dd a_init
|
|
|
|
|
ini_get_str dd aini_get_str
|
|
|
|
|
ini_get_int dd aini_get_int
|
|
|
|
|
ini_set_str dd aini_set_str
|
|
|
|
|
ini_set_int dd aini_set_int
|
2014-04-09 21:55:14 +02:00
|
|
|
|
dd 0
|
|
|
|
|
dd 0
|
|
|
|
|
a_init db 'lib_init',0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
aini_get_str db 'ini_get_str',0
|
|
|
|
|
aini_get_int db 'ini_get_int',0
|
|
|
|
|
aini_set_str db 'ini_set_str',0
|
|
|
|
|
aini_set_int db 'ini_set_int',0
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
apath db 'path',0
|
|
|
|
|
asettings db 'settings',0
|
|
|
|
|
aautoclose db 'autoclose',0
|
2014-04-09 21:55:14 +02:00
|
|
|
|
path db '/hd2/1/kolibri.img',0
|
2013-11-11 23:49:12 +01:00
|
|
|
|
ini_file db '/sys/settings/rdsave.ini',0
|
|
|
|
|
;ini_file db '/sys/rdsave.ini',0
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
is_notify:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
dd 7, 0, ok, 0, 0
|
|
|
|
|
db "/rd/1/@notify", 0
|
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
read_folder:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
.subfunction dd 1
|
|
|
|
|
.start dd 0
|
|
|
|
|
.flags dd 0
|
|
|
|
|
.size dd 1
|
|
|
|
|
.return dd folder_data
|
|
|
|
|
db 0
|
|
|
|
|
.name: dd check_dir
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
param dd 0
|
|
|
|
|
hidden dd 0
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
IM_END:
|
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-11 23:49:12 +01:00
|
|
|
|
align 4
|
|
|
|
|
PARAMS:
|
|
|
|
|
rb 256
|
|
|
|
|
ini_path:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 4096
|
2013-11-11 23:49:12 +01:00
|
|
|
|
check_dir:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 4096
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
2007-02-12 06:14:58 +01:00
|
|
|
|
sc system_colors
|
2013-11-11 23:49:12 +01:00
|
|
|
|
|
|
|
|
|
autoclose rd 1
|
|
|
|
|
|
2014-04-09 21:55:14 +02:00
|
|
|
|
color rd 1
|
2013-12-02 23:59:48 +01:00
|
|
|
|
|
|
|
|
|
msg:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 1024
|
|
|
|
|
|
|
|
|
|
ntf_msg:
|
|
|
|
|
rb 1024
|
2013-11-25 07:35:17 +01:00
|
|
|
|
|
2013-11-11 23:49:12 +01:00
|
|
|
|
folder_data:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 304*32+32 ; 9 Kb
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
cur_dir_path:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 4096
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
library_path:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 4096
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-11 23:49:12 +01:00
|
|
|
|
temp_dir_path:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 4096
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
fname_buf:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 4096
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
procinfo:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 1024
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
filename_area:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 256
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
text_work_area:
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 1024
|
2010-09-07 22:43:41 +02:00
|
|
|
|
;---------------------------------------------------------------------
|
2013-11-11 23:49:12 +01:00
|
|
|
|
align 32
|
2014-04-09 21:55:14 +02:00
|
|
|
|
rb 4096
|
2010-09-07 22:43:41 +02:00
|
|
|
|
stacktop:
|
2013-12-02 23:59:48 +01:00
|
|
|
|
I_END:
|