Rev 7188 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7188 | Rev 7196 | ||
---|---|---|---|
Line 13... | Line 13... | ||
13 | if (GetDir(#buf, #filesnum, folder_path, DIRS_ONLYREAL)==0) |
13 | if (GetDir(#buf, #filesnum, folder_path, DIRS_ONLYREAL)==0) |
14 | if (filesnum==0) |
14 | if (filesnum==0) |
15 | { |
15 | { |
16 | notify("'Error opening folder' -E"); |
16 | notify("'Error opening folder' -E"); |
17 | } |
17 | } |
18 | - | ||
- | 18 | debugval("sizeof(files_mas)", sizeof(files_mas)); |
|
19 | for (j=0; j |
19 | for (j=0; j |
20 | { |
20 | { |
21 | strcpy(#temp_filename, j*304 + buf+72); |
21 | strcpy(#temp_filename, j*304 + buf+72); |
22 | end_pointer = #temp_filename+strlen(#temp_filename); |
22 | end_pointer = #temp_filename+strlen(#temp_filename); |
23 | if (strcmpi(end_pointer-4,".mp3")==0) |
23 | if (strcmpi(end_pointer-4,".mp3")==0) |
Line 25... | Line 25... | ||
25 | || (strcmpi(end_pointer-3,".xm")==0) |
25 | || (strcmpi(end_pointer-3,".xm")==0) |
26 | { |
26 | { |
27 | cur = list.count; |
27 | cur = list.count; |
28 | files_mas[cur]=j; |
28 | files_mas[cur]=j; |
29 | list.count++; |
29 | list.count++; |
- | 30 | if (list.count>=sizeof(files_mas)*sizeof(int)) break; |
|
30 | } |
31 | } |
31 | } |
32 | } |
32 | SortByName(0, list.count-1); |
33 | SortByName(0, list.count-1); |
33 | } |
34 | } |