Rev 5931 | Rev 5962 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5931 | Rev 5957 | ||
---|---|---|---|
Line 153... | Line 153... | ||
153 | WriteText(80, 115, 0x80, 0x000000, QUEST_2); |
153 | WriteText(80, 115, 0x80, 0x000000, QUEST_2); |
154 | DrawFlatButton(52,138,70,20,301,0xFFB6B5,T_YES); |
154 | DrawFlatButton(52,138,70,20,301,0xFFB6B5,T_YES); |
155 | DrawFlatButton(145,138,70,20,302,0xC6DFC6,T_NO); |
155 | DrawFlatButton(145,138,70,20,302,0xC6DFC6,T_NO); |
156 | } |
156 | } |
Line 157... | Line -... | ||
157 | - | ||
158 | /* |
157 | |
159 | void GetSizeDir(dword way) |
158 | void GetSizeDir(dword way) |
160 | { |
159 | { |
161 | dword dirbuf, fcount, i, filename; |
160 | dword dirbuf, fcount, i, filename; |
162 | dword cur_file; |
161 | dword cur_file; |
Line 183... | Line 182... | ||
183 | } |
182 | } |
184 | } |
183 | } |
185 | free(cur_file); |
184 | free(cur_file); |
186 | } |
185 | } |
187 | } |
186 | } |
188 | */ |
- | |
Line 189... | Line 187... | ||
189 | 187 | ||
190 | void GetSizeMoreFiles(dword way) |
188 | void GetSizeMoreFiles(dword way) |
191 | { |
189 | { |
192 | char cur_file[4096]; |
190 | char cur_file[4096]; |
193 | dword selected_offset2; |
191 | dword selected_offset2; |
194 | size_dir = 0; |
192 | |
195 | for (i=0; i |
193 | for (i=0; i |
196 | { |
194 | { |
197 | selected_offset2 = file_mas[i]*304 + buf+32 + 7; |
195 | selected_offset2 = file_mas[i]*304 + buf+32 + 7; |
198 | if(ESBYTE[selected_offset2]) |
- | |
199 | { |
196 | if (ESBYTE[selected_offset2]) { |
200 | sprintf(#cur_file,"%s%s",way,file_mas[i]*304+buf+72); |
- | |
201 | size_dir += fs.get_size(#cur_file); |
197 | sprintf(#cur_file,"%s%s",way,file_mas[i]*304+buf+72); |
202 | if (TestBit(ESDWORD[file_mas[i]*304+buf+32], 4) ) |
198 | if (TestBit(ESDWORD[file_mas[i]*304+buf+32], 4) ) |
203 | { |
199 | { |
204 | //debugln(#cur_file); |
200 | debugln(#cur_file); |
205 | fs.get_size(#cur_file); |
- | |
206 | dir_count = dir_count + ECX; |
201 | GetSizeDir(#cur_file); |
207 | dir_count++; |
- | |
208 | file_count = file_count + EDX; |
202 | dir_count++; |
209 | } |
203 | } |
210 | else |
204 | else |
- | 205 | { |
|
211 | { |
206 | GetFileInfo(#cur_file, #file_info_dirsize); |
212 | size_dir += fs.get_size(#cur_file); |
207 | size_dir += file_info_dirsize.sizelo; |
213 | file_count++; |
208 | file_count++; |
214 | } |
209 | } |
215 | } |
210 | } |
216 | } |
211 | } |
Line 238... | Line 233... | ||
238 | else |
233 | else |
239 | { |
234 | { |
240 | GetFileInfo(#file_path, #file_info_general); |
235 | GetFileInfo(#file_path, #file_info_general); |
241 | strcpy(#file_name2, #file_name); |
236 | strcpy(#file_name2, #file_name); |
242 | file_name_ed.size = strlen(#file_name2); |
237 | file_name_ed.size = strlen(#file_name2); |
243 | fs.get_size(#file_path); |
238 | if(itdir) GetSizeDir(#file_path); |
244 | element_size = EAX; |
- | |
245 | file_count = EDX; |
- | |
246 | dir_count =ECX; |
- | |
247 | debugi(dir_count); |
- | |
248 | atr_readonly = file_info_general.readonly; |
239 | atr_readonly = file_info_general.readonly; |
249 | atr_hidden = file_info_general.hidden; |
240 | atr_hidden = file_info_general.hidden; |
250 | atr_system = file_info_general.system; |
241 | atr_system = file_info_general.system; |
251 | } |
242 | } |
252 | strcpy(#path_to_file, #path); |
243 | strcpy(#path_to_file, #path); |
Line 358... | Line 349... | ||
358 | Put_icon(#file_name2+strrchr(#file_name2,'.'), 18, 19, 0xFFFfff, 0); |
349 | Put_icon(#file_name2+strrchr(#file_name2,'.'), 18, 19, 0xFFFfff, 0); |
Line 359... | Line 350... | ||
359 | 350 | ||
360 | WriteText(50, 13, 0x80, 0x000000, PR_T_NAME); |
351 | WriteText(50, 13, 0x80, 0x000000, PR_T_NAME); |
Line -... | Line 352... | ||
- | 352 | edit_box_draw stdcall (#file_name_ed); |
|
361 | edit_box_draw stdcall (#file_name_ed); |
353 | |
362 | 354 | if (!itdir) element_size = file_info_general.sizelo; |
|
363 | if (itdir) |
355 | else |
364 | { |
356 | { |
365 | WriteText(10, 80, 0x80, 0x000000, PR_T_CONTAINS); |
357 | WriteText(10, 80, 0x80, 0x000000, PR_T_CONTAINS); |
366 | sprintf(#folder_info,"%s%d%s%d",SET_6,file_count,SET_7,dir_count); |
358 | sprintf(#folder_info,"%s%d%s%d",SET_6,file_count,SET_7,dir_count); |
367 | WriteText(100, 80, 0x80, 0x000000, #folder_info); |
359 | WriteText(100, 80, 0x80, 0x000000, #folder_info); |
368 | //element_size = size_dir; |
360 | element_size = size_dir; |
369 | } |
361 | } |
370 | WriteText(10, 95, 0x80, 0x000000, SET_3); |
362 | WriteText(10, 95, 0x80, 0x000000, SET_3); |
371 | WriteText(10, 110, 0x80, 0x000000, SET_4); |
363 | WriteText(10, 110, 0x80, 0x000000, SET_4); |