forked from KolibriOS/kolibrios
Pixie: fixed an issue with opening files
git-svn-id: svn://kolibrios.org@7348 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3dd78a9d88
commit
8d72ebc871
@ -30,7 +30,7 @@
|
|||||||
char default_dir[] = "/rd/1";
|
char default_dir[] = "/rd/1";
|
||||||
od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" };
|
od_filter filter2 = { 15, "MP3\0WAV\0XM\0\0" };
|
||||||
|
|
||||||
#define ABOUT_MESSAGE "Pixie Player v2.91 Final
|
#define ABOUT_MESSAGE "Pixie Player v2.92 Final
|
||||||
|
|
||||||
A tiny music folder player.
|
A tiny music folder player.
|
||||||
Supports MP3, WAV, XM audio file formats.
|
Supports MP3, WAV, XM audio file formats.
|
||||||
@ -121,8 +121,10 @@ void main()
|
|||||||
list.SetFont(8, 16, 13);
|
list.SetFont(8, 16, 13);
|
||||||
LoadLibraries();
|
LoadLibraries();
|
||||||
LoadIniConfig();
|
LoadIniConfig();
|
||||||
if (work_folder) param=LAST_FOLDER_EXISTS;
|
if (!param) {
|
||||||
if (!param) notify("'Pixie Player\nPress O key to open MP3/WAV/XM file' -St");
|
notify("'Pixie Player\nPress O key to open MP3/WAV/XM file' -St");
|
||||||
|
if (work_folder) param=LAST_FOLDER_EXISTS;
|
||||||
|
}
|
||||||
kfont.init(DEFAULT_FONT);
|
kfont.init(DEFAULT_FONT);
|
||||||
SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
|
SetEventMask(EVM_REDRAW + EVM_KEY + EVM_BUTTON + EVM_MOUSE + EVM_MOUSE_FILTER);
|
||||||
loop()
|
loop()
|
||||||
@ -197,7 +199,7 @@ void main()
|
|||||||
if (param==LAST_FOLDER_EXISTS) EventOpenFolder(NULL);
|
if (param==LAST_FOLDER_EXISTS) EventOpenFolder(NULL);
|
||||||
else EventOpenFolder(#param);
|
else EventOpenFolder(#param);
|
||||||
param[0] = NULL;
|
param[0] = NULL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
EventCheckSongFinished();
|
EventCheckSongFinished();
|
||||||
|
Loading…
Reference in New Issue
Block a user