Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5547 → Rev 5548

/programs/cmm/pixie/get_files_list.h
1,6 → 1,3
char temp_filename[4096],
work_folder[4096],
current_filename[256];
int files_mas[2000];
dword buf;
 
8,10 → 5,11
void OpenDirectory(dword folder_path)
{
int cur;
char temp_filename[4096];
dword j, filesnum, end_pointer;
 
list.count = 0;
//free(buf);
if (buf) free(buf);
if (GetDir(#buf, #filesnum, folder_path, DIRS_ONLYREAL)==0)
if (filesnum==0)
{
28,7 → 26,6
list.count++;
}
SortByName(0, list.count-1);
SetOpenedFileFirst();
}
 
void SortByName(int a, b)
41,10 → 38,10
SortByName(i, b);
}
 
void SetOpenedFileFirst()
void SetOpenedFileFirst(dword in_name)
{
int i;
dword opened_filename = #param + strrchr(#param, '/');
dword opened_filename = in_name + strrchr(in_name, '/');
for (i=0; i<list.count; i++)
{
if (strcmpi(opened_filename,files_mas[i]*304 + buf+72)==0) { files_mas[0]><files_mas[i]; return; }
/programs/cmm/pixie/pixie.c
62,7 → 62,10
THEME_LIGHT
};
 
char work_folder[4096],
current_filename[256];
 
 
#include "get_files_list.h"
#include "settings.h"
#include "check_default_player.h"
89,7 → 92,11
strcpy(#work_folder, #param);
work_folder[strrchr(#work_folder, '/')-1]='\0';
}
if (work_folder) OpenDirectory(#work_folder);
if (work_folder)
{
OpenDirectory(#work_folder);
SetOpenedFileFirst(#param);
}
 
StartPlayingMp3();
list.SetSizes(1, skin.h, skin.w-1, 198, 40, 18);
143,7 → 150,7
} while (drag_mouse.lkm);
}
if (m.pkm) && (m.y > skin.h)
notify("'Pixies Player v1.1\nChange sound volume: Left/Right key\nChange skin: F1/F2\nMute: M key' -St\n");
notify("'Pixies Player v1.11\nChange sound volume: Left/Right key\nChange skin: F1/F2\nMute: M key' -St\n");
break;
 
case evButton:
232,7 → 239,7
if (current_playing_file_n < list.count)
{
current_playing_file_n = list.current;
StartPlayingMp3();
if (list.KeyDown()) StartPlayingMp3();
}
else
{
249,6 → 256,7
{
int i;
int yyy;
char temp_filename[4096];
for (i=0; i<list.visible; i++;)
{