Appearance: update according to a new lib

git-svn-id: svn://kolibrios.org@5655 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2015-08-02 19:40:54 +00:00
parent e63965353e
commit 5d7e189ec4

View File

@ -50,10 +50,10 @@ void Open_Dir()
{ {
int j; int j;
list[active].count = 0; list[active].count = 0;
io.dir_buffer(#folder_path,DIR_ONLYREAL); io.dir.load(#folder_path,DIR_ONLYREAL);
for (j=0; j<io.dir.count; j++) for (j=0; j<io.dir.count; j++)
{ {
strcpy(#temp_filename, io.dir_position(j)); strcpy(#temp_filename, io.dir.position(j));
strlwr(#temp_filename); strlwr(#temp_filename);
if (active==SKINS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".skn")!=0) continue; if (active==SKINS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".skn")!=0) continue;
if (active==WALLPAPERS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".txt")==0) continue; if (active==WALLPAPERS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".txt")==0) continue;
@ -76,7 +76,7 @@ void Draw_List()
for (i=0; i<list_last; i++;) for (i=0; i<list_last; i++;)
{ {
cur = list[active].first; cur = list[active].first;
strcpy(#temp_filename, io.dir_position(files_mas[i+cur])); strcpy(#temp_filename, io.dir.position(files_mas[i+cur]));
temp_filename[strlen(#temp_filename)-4] = 0; temp_filename[strlen(#temp_filename)-4] = 0;
yyy = i*list[active].line_h+list[active].y; yyy = i*list[active].line_h+list[active].y;
@ -126,7 +126,7 @@ void Apply()
strcpy(#cur_file_path, #folder_path); strcpy(#cur_file_path, #folder_path);
cur = list[SKINS].current; cur = list[SKINS].current;
chrcat(#cur_file_path, '/'); chrcat(#cur_file_path, '/');
strcat(#cur_file_path, io.dir_position(files_mas[cur])); strcat(#cur_file_path, io.dir.position(files_mas[cur]));
SetSystemSkin(#cur_file_path); SetSystemSkin(#cur_file_path);
} }
if (list[WALLPAPERS].active) if (list[WALLPAPERS].active)
@ -135,7 +135,7 @@ void Apply()
strcat(#cur_file_path, #folder_path); strcat(#cur_file_path, #folder_path);
cur = list[WALLPAPERS].current; cur = list[WALLPAPERS].current;
chrcat(#cur_file_path, '/'); chrcat(#cur_file_path, '/');
strcat(#cur_file_path, io.dir_position(files_mas[cur])); strcat(#cur_file_path, io.dir.position(files_mas[cur]));
RunProgram("/sys/media/kiv", #cur_file_path); RunProgram("/sys/media/kiv", #cur_file_path);
Draw_List(); Draw_List();
} }