diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index 798dcc4f0d..8f0f3740d0 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -122,7 +122,7 @@ void main() rand_n = random(40); load_dll(boxlib, #box_lib_init,0); - load_dll(libini, #lib_init,1); + load_dll(libini, #lib_init,1); eolite_ini_path = abspath("Eolite.ini"); fd_path_eolite_ini_path = "/fd/1/File Managers/Eolite.ini"; @@ -370,8 +370,8 @@ void main() } if (new_element_active) { - if (key_scancode == SCAN_CODE_ESC) NewElement(0); - if (key_scancode == SCAN_CODE_ENTER) NewElement(1); + if (key_scancode == SCAN_CODE_ENTER) NewElement(true); + if (key_scancode == SCAN_CODE_ESC) NewElement(false); EAX= key_ascii << 8; edit_box_key stdcall (#new_file_ed); break; @@ -507,7 +507,7 @@ void main() if (action_buf==OPERATION_END) { FnProcess(5); - SelectFileByName(#copy_to+strrchr(#copy_to,'/')); + if (copy_stak) SelectFileByName(#copy_to+strrchr(#copy_to,'/')); } if (action_buf==100) Open(0); if (action_buf==201) ShowOpenWithDialog(); @@ -523,14 +523,14 @@ void main() action_buf=0; } } - if(cmd_free) { - if(cmd_free==1) free(menu_stak); - else if(cmd_free==2)free(about_stak); - else if(cmd_free==3)free(properties_stak); - else if(cmd_free==4)free(settings_stak); - else if(cmd_free==5)free(copy_stak); + if(cmd_free==1) menu_stak=free(menu_stak); + else if(cmd_free==2) about_stak=free(about_stak); + else if(cmd_free==3) properties_stak=free(properties_stak); + else if(cmd_free==4) settings_stak=free(settings_stak); + else if(cmd_free==5) copy_stak=free(copy_stak); + else if(cmd_free==6) delete_stak=free(delete_stak); cmd_free = false; } } @@ -662,11 +662,11 @@ void List_ReDraw() void Line_ReDraw(dword bgcol, filenum){ dword text_col=0, - ext1, attr, - file_offet, - file_name_off, - y=filenum*files.item_h+files.y; - BDVK file; + ext1, attr, + file_offet, + file_name_off, + y=filenum*files.item_h+files.y; + BDVK file; if (filenum==-1) return; DrawBar(files.x,y,3,files.item_h,bgcol); DrawBar(files.x+19,y,files.w-19,files.item_h,bgcol); @@ -886,16 +886,16 @@ void Del_File_Thread() if (selected_count) { - for (i=0; i=0; ind--;) { if (!strcmp(file_mas[ind]*304+buf+72,that_file)) break; } files.cur_y = ind - 1; diff --git a/programs/cmm/eolite/include/translations.h b/programs/cmm/eolite/include/translations.h index b7959b5892..336b1444df 100644 --- a/programs/cmm/eolite/include/translations.h +++ b/programs/cmm/eolite/include/translations.h @@ -1,5 +1,5 @@ -#define TITLE "Eolite File Manager v3.28" -#define ABOUT_TITLE "Eolite 3.28" +#define TITLE "Eolite File Manager v3.29" +#define ABOUT_TITLE "Eolite 3.29" #ifdef LANG_RUS ?define T_FILE "” ©«" diff --git a/programs/cmm/kolibri font viewer/Tupfile.lua b/programs/cmm/kolibri font viewer/Tupfile.lua new file mode 100644 index 0000000000..b5603cbba0 --- /dev/null +++ b/programs/cmm/kolibri font viewer/Tupfile.lua @@ -0,0 +1,6 @@ +if tup.getconfig("NO_CMM") ~= "" then return end +if tup.getconfig("LANG") == "ru" +then C_LANG = "LANG_RUS" +else C_LANG = "LANG_ENG" -- this includes default case without config +end +tup.rule("kolibri font viewer.c", "c-- /D=AUTOBUILD /D=$(C_LANG) %f" .. tup.getconfig("KPACK_CMD"), "kolibri font viewer.com")