Eolite: small optimization, .lua icon

git-svn-id: svn://kolibrios.org@3018 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2012-11-09 16:28:27 +00:00
parent e8dd8daf88
commit f2043c7407
2 changed files with 2 additions and 1 deletions

View File

@ -632,7 +632,7 @@ void Open_Dir(dword temp_, redraw){
copystr(temp_,#edit_path); copystr(temp_,#edit_path);
KEdit(); KEdit();
HistoryPath(ADD_NEW_PATH); HistoryPath(ADD_NEW_PATH);
IF (!strcmp(".",buf+72)) {memmov(buf,buf+304,count-1*304); count--;} //ôèëüòðóåì ýëåìåíò "." IF (!strcmp(".",buf+72)) {count--; memmov(buf,buf+304,count*304);} //ôèëüòðóåì ýëåìåíò "."
FOR (j=0;j<but_num;j++) DeleteButton(201+j); //óäàëÿåì ñòàðûå FOR (j=0;j<but_num;j++) DeleteButton(201+j); //óäàëÿåì ñòàðûå
but_num=onTop(6,57)/BUTTON_HEIGHT; but_num=onTop(6,57)/BUTTON_HEIGHT;
IF (count<but_num) but_num=count; IF (count<but_num) but_num=count;

View File

@ -22,6 +22,7 @@ char *ext[]={
"sh", 5, "sh", 5,
"com", 5, "com", 5,
"kex", 6, "kex", 6,
"lua", 6,
"exe", 7, "exe", 7,
"msi", 7, "msi", 7,
"sys", 8, "sys", 8,