Subversion Repositories Kolibri OS

Rev

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

Rev 2833 Rev 2875
Line 11... Line 11...
11
dword GetCurrentFolder()
11
dword GetCurrentFolder()
12
{
12
{
13
	char cur_fol[4096];
13
	char cur_fol[4096];
14
	copystr(#path,#cur_fol);
14
	copystr(#path,#cur_fol);
15
	cur_fol[strlen(#cur_fol)-1]=0x00; //îáðåçàåì ïîñëåäíèé /
15
	cur_fol[strlen(#cur_fol)-1]=0x00; //îáðåçàåì ïîñëåäíèé /
16
	copystr(#cur_fol+find_symbol(#cur_fol,'/'),#cur_fol);
16
	copystr(#cur_fol+strchr(#cur_fol,'/'),#cur_fol);
17
	return #cur_fol;
17
	return #cur_fol;
18
}
18
}
Line 19... Line 19...
19
 
19
 
20
void HistoryPath(byte action)
20
int HistoryPath(byte action)
21
{
21
{
Line 22... Line 22...
22
	int MAX_HISTORY_NUM;
22
	int MAX_HISTORY_NUM;
23
	
23
	
Line 39... Line 39...
39
		history_num=history_current;
39
		history_num=history_current;
40
	}
40
	}
Line 41... Line 41...
41
	
41
	
42
	if (action==GO_BACK)
42
	if (action==GO_BACK)
43
	{
43
	{
44
		if (history_current<=2) return;
44
		if (history_current<=2) return 0;
45
		history_current--;
45
		history_current--;
-
 
46
		copystr(#history_list[history_current].Item,#path);
46
		copystr(#history_list[history_current].Item,#path);
47
		return 1;
Line 47... Line 48...
47
	}
48
	}
48
 
49
 
49
	if (action==GO_FORWARD)
50
	if (action==GO_FORWARD)
50
	{
51
	{
51
		if (history_current==history_num) return;
52
		if (history_current==history_num) return 0;
-
 
53
		history_current++;
52
		history_current++;
54
		copystr(#history_list[history_current].Item,#path);
53
		copystr(#history_list[history_current].Item,#path);
55
		return 1;
54
	}	
56
	}