Rev 5509 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5509 | Rev 5548 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | enum { |
60 | enum { |
61 | THEME_DARK, |
61 | THEME_DARK, |
62 | THEME_LIGHT |
62 | THEME_LIGHT |
63 | }; |
63 | }; |
Line -... | Line 64... | ||
- | 64 | ||
- | 65 | char work_folder[4096], |
|
- | 66 | current_filename[256]; |
|
Line 64... | Line 67... | ||
64 | 67 | ||
65 | 68 | ||
66 | #include "get_files_list.h" |
69 | #include "get_files_list.h" |
Line 87... | Line 90... | ||
87 | if (param) |
90 | if (param) |
88 | { |
91 | { |
89 | strcpy(#work_folder, #param); |
92 | strcpy(#work_folder, #param); |
90 | work_folder[strrchr(#work_folder, '/')-1]='\0'; |
93 | work_folder[strrchr(#work_folder, '/')-1]='\0'; |
91 | } |
94 | } |
- | 95 | if (work_folder) |
|
- | 96 | { |
|
92 | if (work_folder) OpenDirectory(#work_folder); |
97 | OpenDirectory(#work_folder); |
- | 98 | SetOpenedFileFirst(#param); |
|
- | 99 | } |
|
Line 93... | Line 100... | ||
93 | 100 | ||
94 | StartPlayingMp3(); |
101 | StartPlayingMp3(); |
95 | list.SetSizes(1, skin.h, skin.w-1, 198, 40, 18); |
102 | list.SetSizes(1, skin.h, skin.w-1, 198, 40, 18); |
96 | if (list.count <= list.visible) |
103 | if (list.count <= list.visible) |
Line 141... | Line 148... | ||
141 | } |
148 | } |
142 | pause(2); |
149 | pause(2); |
143 | } while (drag_mouse.lkm); |
150 | } while (drag_mouse.lkm); |
144 | } |
151 | } |
145 | if (m.pkm) && (m.y > skin.h) |
152 | if (m.pkm) && (m.y > skin.h) |
146 | notify("'Pixies Player v1.1\nChange sound volume: Left/Right key\nChange skin: F1/F2\nMute: M key' -St\n"); |
153 | notify("'Pixies Player v1.11\nChange sound volume: Left/Right key\nChange skin: F1/F2\nMute: M key' -St\n"); |
147 | break; |
154 | break; |
Line 148... | Line 155... | ||
148 | 155 | ||
149 | case evButton: |
156 | case evButton: |
150 | id=GetButtonID(); |
157 | id=GetButtonID(); |
Line 230... | Line 237... | ||
230 | if (playback_mode == PLAYBACK_MODE_PLAYING) && (GetProcessSlot(player_run_id)==0) |
237 | if (playback_mode == PLAYBACK_MODE_PLAYING) && (GetProcessSlot(player_run_id)==0) |
231 | { |
238 | { |
232 | if (current_playing_file_n < list.count) |
239 | if (current_playing_file_n < list.count) |
233 | { |
240 | { |
234 | current_playing_file_n = list.current; |
241 | current_playing_file_n = list.current; |
235 | StartPlayingMp3(); |
242 | if (list.KeyDown()) StartPlayingMp3(); |
236 | } |
243 | } |
237 | else |
244 | else |
238 | { |
245 | { |
239 | StopPlayingMp3(); |
246 | StopPlayingMp3(); |
240 | DrawWindow(); |
247 | DrawWindow(); |
Line 247... | Line 254... | ||
247 | 254 | ||
248 | void DrawPlayList() |
255 | void DrawPlayList() |
249 | { |
256 | { |
250 | int i; |
257 | int i; |
- | 258 | int yyy; |
|
Line 251... | Line 259... | ||
251 | int yyy; |
259 | char temp_filename[4096]; |
252 | 260 | ||
253 | for (i=0; i |
261 | for (i=0; i |
254 | { |
262 | { |