Rev 7196 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7196 | Rev 7347 | ||
---|---|---|---|
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 | debugval("sizeof(files_mas)", sizeof(files_mas)); |
- | |
19 | for (j=0; j |
18 | for (j=0; j |
20 | { |
19 | { |
21 | strcpy(#temp_filename, j*304 + buf+72); |
20 | strcpy(#temp_filename, j*304 + buf+72); |
22 | end_pointer = #temp_filename+strlen(#temp_filename); |
21 | end_pointer = #temp_filename+strlen(#temp_filename); |
23 | if (strcmpi(end_pointer-4,".mp3")==0) |
22 | if (strcmpi(end_pointer-4,".mp3")==0) |
Line 51... | Line 50... | ||
51 | { |
50 | { |
52 | if (strcmpi(opened_filename,files_mas[i]*304 + buf+72)==0) { files_mas[0]> |
51 | if (strcmpi(opened_filename,files_mas[i]*304 + buf+72)==0) { files_mas[0]> |
53 | } |
52 | } |
54 | } |
53 | } |
Line 55... | Line 54... | ||
55 | 54 | ||
56 | dword Getcur_yItemName() { |
55 | dword GetPlayingItemName() { |
57 | return files_mas[current_playing_file_n]*304 + buf+72; |
56 | return files_mas[current_playing_file_n]*304 + buf+72; |
- | 57 | } |
|
- | 58 | ||
- | 59 | dword GetSelectedItemName() { |
|
- | 60 | int cury = list.cur_y; |
|
- | 61 | return files_mas[cury]*304 + buf+72; |