Rev 6602 | Rev 6635 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6602 | Rev 6604 | ||
---|---|---|---|
Line 573... | Line 573... | ||
573 | void DrawStatusBar() |
573 | void DrawStatusBar() |
574 | { |
574 | { |
575 | char status_bar_str[80]; |
575 | char status_bar_str[80]; |
576 | int go_up_folder_exists=0; |
576 | int go_up_folder_exists=0; |
577 | if (!show_status_bar) return; |
577 | if (!show_status_bar) return; |
578 | if (files.count>0) && (strcmp(file_mas[0]*304+buf+72,"..")==0) go_up_folder_exists=1;; |
578 | if (files.count>0) && (strcmp(file_mas[0]*304+buf+72,"..")==0) go_up_folder_exists=1; |
579 | DrawBar(1, Form.cheight - status_bar_h-1, Form.cwidth-2, status_bar_h, system.color.work); |
579 | DrawBar(1, Form.cheight - status_bar_h-1, Form.cwidth-2, status_bar_h, system.color.work); |
580 | sprintf(#status_bar_str, STATUS_STR, files.count-go_up_folder_exists, count_dir-go_up_folder_exists, files.count-count_dir, selected_count); |
580 | sprintf(#status_bar_str, STATUS_STR, files.count-go_up_folder_exists, count_dir-go_up_folder_exists, files.count-count_dir, selected_count); |
581 | WriteText(6,Form.cheight - 13,0x80,0x000000,#status_bar_str); |
581 | WriteText(6,Form.cheight - 13,0x80,0x000000,#status_bar_str); |
582 | } |
582 | } |
Line 783... | Line 783... | ||
783 | 783 | ||
784 | inline Sorting() |
784 | inline Sorting() |
785 | { |
785 | { |
786 | dword k=0, l=1; |
786 | dword k=0, l=1; |
787 | dword file_off; |
787 | dword file_off; |
788 | if (!strncmp(#path,"/",2)) //do not sort |
788 | if (!strcmp(#path,"/")) //do not sort root folder |
789 | { |
789 | { |
- | 790 | for(k=1;k |
|
790 | for(k=1;k |
791 | count_dir = k; |
791 | return; |
792 | return; |
792 | } |
793 | } |
793 | for (j=files.count-1, file_off=files.count-1*304+buf+32; j>=0; j--, file_off-=304;) //files | folders |
794 | for (j=files.count-1, file_off=files.count-1*304+buf+32; j>=0; j--, file_off-=304;) //files | folders |
794 | { |
795 | { |