Rev 6583 | Rev 6637 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6583 | Rev 6635 | ||
---|---|---|---|
Line 101... | Line 101... | ||
101 | devbuf = malloc(10000); |
101 | devbuf = malloc(10000); |
102 | ReadDir(19, devbuf, "/"); |
102 | ReadDir(19, devbuf, "/"); |
103 | dev_num = EBX; |
103 | dev_num = EBX; |
104 | for (i1=0; i1 |
104 | for (i1=0; i1 |
105 | { |
105 | { |
106 | sprintf(#dev_name,"/%s/",i1*304+ devbuf+72); |
106 | sprintf(#dev_name,"/%s",i1*304+ devbuf+72); |
107 | Open_Dir(#dev_name, ONLY_OPEN); |
107 | Open_Dir(#dev_name, ONLY_OPEN); |
108 | dev_disc_num = files.count; |
108 | dev_disc_num = files.count; |
109 | for (j1=0; j1 |
109 | for (j1=0; j1 |
110 | { |
110 | { |
111 | sprintf(#sys_discs,"%s%s/",#dev_name,j1*304+ buf+72); |
111 | sprintf(#sys_discs,"%s/%s",#dev_name,j1*304+ buf+72); |
112 | list.add(#sys_discs); |
112 | list.add(#sys_discs); |
113 | } |
113 | } |
114 | if (!strcmp(#sys_discs, "/rd/1/")) |
114 | if (!strcmp(#sys_discs, "/rd/1")) |
115 | { |
115 | { |
116 | GetDir(#tempbuf, #temp_file_count, "/kolibrios", DIRS_ONLYREAL); |
116 | GetDir(#tempbuf, #temp_file_count, "/kolibrios", DIRS_ONLYREAL); |
117 | if (temp_file_count) list.add("/kolibrios/"); |
117 | if (temp_file_count) list.add("/kolibrios"); |
118 | free(tempbuf); |
118 | free(tempbuf); |
119 | } |
119 | } |
120 | } |
120 | } |
121 | free(devbuf); |
121 | free(devbuf); |
122 | } |
122 | } |
Line 132... | Line 132... | ||
132 | if (!two_panels) { draw_y = 74; draw_x = 17; draw_h = 16; } |
132 | if (!two_panels) { draw_y = 74; draw_x = 17; draw_h = 16; } |
Line 133... | Line 133... | ||
133 | 133 | ||
134 | for (i=0;i |
134 | for (i=0;i |
135 | { |
135 | { |
136 | strcpy(#dev_name, list.get(i)); |
- | |
137 | dev_name[strlen(#dev_name)-1]=NULL; |
136 | strcpy(#dev_name, list.get(i)); |
138 | GetDiskIconAndName(dev_name[1], #dev_icon, #disc_name); |
137 | GetDiskIconAndName(dev_name[1], #dev_icon, #disc_name); |
139 | if (strstr(#path, #dev_name)) is_active=true; else is_active=false; |
138 | if (strstr(#path, #dev_name)) is_active=true; else is_active=false; |
140 | if (two_panels) |
139 | if (two_panels) |
141 | { |
140 | { |