Rev 1951 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1951 | mario79 | 1 | ;--------------------------------------------------------------------- |
2 | Get_ini: |
||
3 | |||
4 | stdcall dll.Init,[lib_init] |
||
5 | |||
6 | mov ebx,ini_file_name |
||
7 | mov esi,path |
||
8 | mov edi,plugin_pach |
||
9 | call copy_file_path |
||
10 | |||
11 | invoke ini_get_int,plugin_pach,aVariables,aSortMode,2 |
||
12 | cmp eax,0 |
||
13 | jb .error_aSortMode |
||
14 | cmp eax,13 |
||
15 | jb @f |
||
16 | .error_aSortMode: |
||
17 | mov eax,2 |
||
18 | @@: |
||
19 | mov [sort_type],eax |
||
20 | invoke ini_get_int,plugin_pach,aVariables,aArrowsOffset,10 |
||
21 | cmp eax,1 |
||
22 | jb .error_aArrowsOffset |
||
23 | cmp eax,100 |
||
24 | jb @f |
||
25 | .error_aArrowsOffset: |
||
26 | mov eax,10 |
||
27 | @@: |
||
28 | mov [arrows_offset],eax |
||
29 | invoke ini_get_int,plugin_pach,aVariables,aSlideShowDelay,300 |
||
30 | cmp eax,1 |
||
31 | jb .error_aSlideShowDelay |
||
32 | cmp eax,99990 |
||
33 | jb @f |
||
34 | .error_aSlideShowDelay: |
||
35 | mov eax,300 |
||
36 | @@: |
||
37 | mov [slide_show_delay],eax |
||
38 | invoke ini_get_int,plugin_pach,aVariables,aShowFileName,0 |
||
39 | cmp eax,0 |
||
40 | jb .error_aShowFileName |
||
41 | cmp eax,1 |
||
42 | jb @f |
||
43 | .error_aShowFileName: |
||
44 | mov eax,1 |
||
45 | @@: |
||
46 | shl eax,1 |
||
3184 | IgorA | 47 | mov [check1.flags],eax |
1951 | mario79 | 48 | invoke ini_get_int,plugin_pach,aVariables,aFilteringFlag,0 |
49 | cmp eax,0 |
||
50 | jb .error_aFilteringFlag |
||
51 | cmp eax,1 |
||
52 | jb @f |
||
53 | .error_aFilteringFlag: |
||
54 | mov eax,1 |
||
55 | @@: |
||
56 | mov [filtering_flag],eax |
||
57 | shl eax,1 |
||
3184 | IgorA | 58 | mov [check2.flags],eax |
1951 | mario79 | 59 | |
60 | ; get convert plugins names |
||
61 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP0,plugin_0_name,127,ConvertPlugins_no_key |
||
62 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP1,plugin_1_name,127,ConvertPlugins_no_key |
||
63 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP2,plugin_2_name,127,ConvertPlugins_no_key |
||
64 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP3,plugin_3_name,127,ConvertPlugins_no_key |
||
65 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP4,plugin_4_name,127,ConvertPlugins_no_key |
||
66 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP5,plugin_5_name,127,ConvertPlugins_no_key |
||
67 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP6,plugin_6_name,127,ConvertPlugins_no_key |
||
68 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP7,plugin_7_name,127,ConvertPlugins_no_key |
||
69 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP8,plugin_8_name,127,ConvertPlugins_no_key |
||
70 | invoke ini_get_str,plugin_pach,aConvertPlugins,aCP9,plugin_9_name,127,ConvertPlugins_no_key |
||
71 | |||
72 | invoke ini_get_str,plugin_pach,aApplicationsPaths,aHelp,Help_path,1023,ConvertPlugins_no_key |
||
73 | invoke ini_get_str,plugin_pach,aApplicationsPaths,aEditor,Editor_path,1023,ConvertPlugins_no_key |
||
74 | invoke ini_get_str,plugin_pach,aApplicationsPaths,aOpenDialog,OpenDialog_path,1023,ConvertPlugins_no_key |
||
75 | invoke ini_get_str,plugin_pach,aOther,akey_help,key_help_name,127,ConvertPlugins_no_key |
||
76 | ret |
||
77 | ;--------------------------------------------------------------------- |
||
78 | Set_ini: |
||
79 | mov ebx,ini_file_name |
||
80 | mov esi,path |
||
81 | mov edi,plugin_pach |
||
82 | call copy_file_path |
||
83 | |||
84 | invoke ini_set_int,plugin_pach,aVariables,aSortMode,[sort_type] |
||
85 | invoke ini_set_int,plugin_pach,aVariables,aArrowsOffset,[arrows_offset] |
||
86 | invoke ini_set_int,plugin_pach,aVariables,aSlideShowDelay,[slide_show_delay] |
||
3184 | IgorA | 87 | mov eax,[check1.flags] |
1951 | mario79 | 88 | shr eax,1 |
3184 | IgorA | 89 | mov [check1.flags],eax |
90 | invoke ini_set_int,plugin_pach,aVariables,aShowFileName,[check1.flags] |
||
1951 | mario79 | 91 | invoke ini_set_int,plugin_pach,aVariables,aFilteringFlag,[filtering_flag] |
92 | ret |
||
93 | ;--------------------------------------------------------------------- |
||
94 | ;libini_alloc: |
||
95 | ; push ecx |
||
96 | ; mov ecx, [esp+8] |
||
97 | ; mcall 68,12 |
||
98 | ; pop ecx |
||
99 | ; ret 4 |
||
100 | ;--------------------------------------------------------------------- |
||
101 | ;libini_free: |
||
102 | ; push ecx |
||
103 | ; mov ecx, [esp+8] |
||
104 | ; mcall 68,13 |
||
105 | ; pop ecx |
||
106 | ; ret 4 |
||
107 | ;--------------------------------------------------------------------- |
||
108 | ;libini_realloc: |
||
109 | ; push ecx edx |
||
110 | ; mov edx, [esp+8+4] |
||
111 | ; mov ecx, [esp+8+8] |
||
112 | ; mcall 68,20 |
||
113 | ; pop edx ecx |
||
114 | ; ret 8 |
||
115 | ;--------------------------------------------------------------------- |