forked from KolibriOS/kolibrios
Eolite 1.15 unstable
git-svn-id: svn://kolibrios.org@2587 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,32 +1,5 @@
|
||||
//Leency - 2012
|
||||
|
||||
#define add_new_path 1
|
||||
#define go_back 2
|
||||
|
||||
void HistoryPath(byte action)
|
||||
{
|
||||
if (action==add_new_path)
|
||||
{
|
||||
IF (strcmp(#PathHistory+find_symbol(#PathHistory,'|'),#path)==0) return;
|
||||
IF (strlen(#PathHistory)+strlen(#path)>2560)
|
||||
{
|
||||
copystr(#PathHistory+1024,#PathHistory);
|
||||
copystr("/",#PathHistory+strlen(#PathHistory));
|
||||
}
|
||||
copystr("|",#PathHistory+strlen(#PathHistory));
|
||||
copystr(#path,#PathHistory+strlen(#PathHistory));
|
||||
}
|
||||
if (action==go_back)
|
||||
{
|
||||
i=strlen(#PathHistory)-1;
|
||||
WHILE (PathHistory[i]<>'|') { i--; };
|
||||
IF (i>0) PathHistory[i]=0x00;
|
||||
WHILE (PathHistory[i]<>'|') { copystr(#PathHistory[i],#path); i--; }
|
||||
IF (i>0) PathHistory[i]=0x00;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dword onLeft(dword right,left) {EAX=Form.width-right-left;}
|
||||
dword onTop(dword down,up) {EAX=Form.height-GetSkinWidth()-down-up;}
|
||||
|
||||
|
Reference in New Issue
Block a user