Subversion Repositories Kolibri OS

Rev

Rev 5654 | Rev 5656 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5654 Rev 5655
Line 48... Line 48...
48
 
48
 
49
void Open_Dir()
49
void Open_Dir()
50
{
50
{
51
	int j;
51
	int j;
52
	list[active].count = 0;
52
	list[active].count = 0;
53
	io.dir_buffer(#folder_path,DIR_ONLYREAL);
53
	io.dir.load(#folder_path,DIR_ONLYREAL);
54
	for (j=0; j
54
	for (j=0; j
55
	{
55
	{
56
		strcpy(#temp_filename, io.dir_position(j));
56
		strcpy(#temp_filename, io.dir.position(j));
57
		strlwr(#temp_filename);
57
		strlwr(#temp_filename);
58
		if (active==SKINS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".skn")!=0) continue;
58
		if (active==SKINS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".skn")!=0) continue;
59
		if (active==WALLPAPERS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".txt")==0) continue;
59
		if (active==WALLPAPERS) if (strcmpi(#temp_filename+strlen(#temp_filename)-4,".txt")==0) continue;
60
		cur = list[active].count;
60
		cur = list[active].count;
Line 74... Line 74...
74
	if (list[active].count > list[active].visible) list_last = list[active].visible; else list_last = list[active].count;
74
	if (list[active].count > list[active].visible) list_last = list[active].visible; else list_last = list[active].count;
Line 75... Line 75...
75
 
75
 
76
	for (i=0; i
76
	for (i=0; i
77
	{
77
	{
78
		cur = list[active].first;
78
		cur = list[active].first;
79
		strcpy(#temp_filename, io.dir_position(files_mas[i+cur]));
79
		strcpy(#temp_filename, io.dir.position(files_mas[i+cur]));
80
		temp_filename[strlen(#temp_filename)-4] = 0;
80
		temp_filename[strlen(#temp_filename)-4] = 0;
Line 81... Line 81...
81
		yyy = i*list[active].line_h+list[active].y;
81
		yyy = i*list[active].line_h+list[active].y;
82
		
82
		
Line 124... Line 124...
124
	if (list[SKINS].active)
124
	if (list[SKINS].active)
125
	{
125
	{
126
		strcpy(#cur_file_path, #folder_path);
126
		strcpy(#cur_file_path, #folder_path);
127
		cur = list[SKINS].current;
127
		cur = list[SKINS].current;
128
		chrcat(#cur_file_path, '/');
128
		chrcat(#cur_file_path, '/');
129
		strcat(#cur_file_path, io.dir_position(files_mas[cur]));
129
		strcat(#cur_file_path, io.dir.position(files_mas[cur]));
130
		SetSystemSkin(#cur_file_path);
130
		SetSystemSkin(#cur_file_path);
131
	} 
131
	} 
132
	if (list[WALLPAPERS].active)
132
	if (list[WALLPAPERS].active)
133
	{
133
	{
134
		strcpy(#cur_file_path, "\\S__");
134
		strcpy(#cur_file_path, "\\S__");
135
		strcat(#cur_file_path, #folder_path);
135
		strcat(#cur_file_path, #folder_path);
136
		cur = list[WALLPAPERS].current;
136
		cur = list[WALLPAPERS].current;
137
		chrcat(#cur_file_path, '/');
137
		chrcat(#cur_file_path, '/');
138
		strcat(#cur_file_path, io.dir_position(files_mas[cur]));
138
		strcat(#cur_file_path, io.dir.position(files_mas[cur]));
139
		RunProgram("/sys/media/kiv", #cur_file_path);
139
		RunProgram("/sys/media/kiv", #cur_file_path);
140
		Draw_List();
140
		Draw_List();
141
	}
141
	}
142
}
142
}