RDSave: use app.ini instead of standalone rdsave.ini

git-svn-id: svn://kolibrios.org@9531 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-12-30 21:10:09 +00:00
parent 106b86b0d0
commit 07168fc588
4 changed files with 16 additions and 18 deletions

View File

@ -17,3 +17,8 @@ Next=PgDn
Prev=PgUp Prev=PgUp
SlideShow=f SlideShow=f
ToggleBar=Tab ToggleBar=Tab
[RDSave]
path=/usbhd0/1/kolibri.img
autoclose=0

View File

@ -1,5 +1,4 @@
[path] [RDSave]
path=/usbhd0/1/kolibri.img path=/usbhd0/1/kolibri.img
[settings]
autoclose=0 autoclose=0
autosave=0

View File

@ -8,7 +8,7 @@
; Heavyiron 01.12.2013 - new logic ; Heavyiron 01.12.2013 - new logic
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
appname equ 'RDsave ' appname equ 'RDsave '
version equ '1.43' version equ '1.44'
debug equ no debug equ no
use32 ; ¢ª«îç¨âì 32-¡¨â­ë© ०¨¬  áᥬ¡«¥à  use32 ; ¢ª«îç¨âì 32-¡¨â­ë© ०¨¬  áᥬ¡«¥à 
@ -51,9 +51,9 @@ load_libraries l_libs_start,end_l_libs
stdcall dll.Init,[init_lib] stdcall dll.Init,[init_lib]
invoke ini_get_int,ini_file,asettings,aautoclose,0 invoke ini_get_int,ini_file,ini_section,aautoclose,0
mov [autoclose],eax mov [autoclose],eax
invoke ini_get_str,ini_file,apath,apath,fname_buf,4096,path invoke ini_get_str,ini_file,ini_section,apath,fname_buf,4096,path
stdcall _lstrcpy,ini_path,fname_buf stdcall _lstrcpy,ini_path,fname_buf
stdcall _lstrcpy,filename_area,start_temp_file_name stdcall _lstrcpy,filename_area,start_temp_file_name
@ -243,7 +243,7 @@ check_for_error: ;
print_err: print_err:
stdcall _lstrlen,ini_path stdcall _lstrlen,ini_path
pusha pusha
invoke ini_set_str,ini_file,apath,apath,ini_path,eax invoke ini_set_str,ini_file,ini_section,apath,ini_path,eax
popa popa
stdcall _lstrcpy,msg,edx stdcall _lstrcpy,msg,edx
cmp [hidden],1 cmp [hidden],1
@ -315,8 +315,8 @@ draw_PathShow:
save_ini: save_ini:
pusha pusha
stdcall _lstrlen,fname_buf stdcall _lstrlen,fname_buf
invoke ini_set_str,ini_file,apath,apath,fname_buf,eax invoke ini_set_str,ini_file,ini_section,apath,fname_buf,eax
invoke ini_set_int,ini_file,asettings,aautoclose,[autoclose] invoke ini_set_int,ini_file,ini_section,aautoclose,[autoclose]
popa popa
ret ret
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
@ -640,16 +640,15 @@ aini_set_str db 'ini_set_str',0
aini_set_int db 'ini_set_int',0 aini_set_int db 'ini_set_int',0
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
ini_file db '/sys/settings/app.ini',0
ini_section db 'RDSave',0
apath db 'path',0 apath db 'path',0
asettings db 'settings',0
aautoclose db 'autoclose',0 aautoclose db 'autoclose',0
path db '/hd2/1/kolibri.img',0 path db '/hd2/1/kolibri.img',0
ini_file db '/sys/settings/rdsave.ini',0
;ini_file db '/sys/rdsave.ini',0
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
is_notify: is_notify:
dd 7, 0, ok, 0, 0 dd 7, 0, ok, 0, 0
db "/rd/1/@notify", 0 db "/sys/@notify", 0
read_folder: read_folder:
.subfunction dd 1 .subfunction dd 1

View File

@ -1,5 +0,0 @@
[path]
path=/usbhd0/1/kolibri.img
[settings]
autoclose=0
autosave=0