Rev 3412 | Rev 3434 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3412 | Rev 3432 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | #define ONLY_SHOW 0 |
24 | #define ONLY_SHOW 0 |
25 | #define WITH_REDRAW 1 |
25 | #define WITH_REDRAW 1 |
26 | #define ONLY_OPEN 2 |
26 | #define ONLY_OPEN 2 |
Line 27... | Line 27... | ||
27 | 27 | ||
28 | //ïåðåìåííûå |
28 | //ïåðåìåííûå |
29 | #define TITLE "Eolite File Manager v1.64" |
29 | #define TITLE "Eolite File Manager v1.65" |
30 | #define ABOUT_TITLE "Eolite v1.64" |
30 | #define ABOUT_TITLE "Eolite v1.65" |
31 | dword col_work = 0xE4DFE1; |
31 | dword col_work = 0xE4DFE1; |
32 | dword col_border = 0x819FC5; |
32 | dword col_border = 0x819FC5; |
33 | dword col_padding = 0xC8C9C9; |
33 | dword col_padding = 0xC8C9C9; |
34 | dword col_selec = 0x94AECE; |
34 | dword col_selec = 0x94AECE; |
Line 60... | Line 60... | ||
60 | struct path_string { |
60 | struct path_string { |
61 | char Item[4096]; |
61 | char Item[4096]; |
62 | }; |
62 | }; |
Line 63... | Line 63... | ||
63 | 63 | ||
64 | int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
64 | int toolbar_buttons_x[7]={9,46,85,134,167,203}; |
Line 65... | Line 65... | ||
65 | char tmp_disk_del_param[3]="d0\0"; |
65 | char tmp_disk_del_param[3]="d0"; |
66 | 66 | ||
67 | dword file_mas[6898]; |
67 | dword file_mas[6898]; |
Line 100... | Line 100... | ||
100 | word key, id, can_show; |
100 | word key, id, can_show; |
101 | int min_win_h; |
101 | int min_win_h; |
Line 102... | Line 102... | ||
102 | 102 | ||
103 | mem_Init(); |
103 | mem_Init(); |
104 | if (load_dll2(boxlib, #box_lib_init,0)!=0) notify("Error while loading library /rd/1/lib/box_lib.obj"); |
- | |
105 | SetEventMask(0x27); |
104 | if (load_dll2(boxlib, #box_lib_init,0)!=0) notify("Error while loading library /rd/1/lib/box_lib.obj"); |
106 | GetSystemDiscs(); |
105 | GetSystemDiscs(); |
107 | GetIni(1); |
- | |
108 | 106 | GetIni(1); |
|
109 | if (param) |
107 | if (param) |
110 | { |
108 | { |
111 | strcpy(#path, #param); |
109 | strcpy(#path, #param); |
112 | if (strcmp(#path+strlen(#path)-1,"/")<>0) strcat(#path, "/"); //åñëè íåò, + "/" |
110 | if (strcmp(#path+strlen(#path)-1,"/")<>0) strcat(#path, "/"); //åñëè íåò, + "/" |
113 | } |
111 | } |
114 | else |
112 | else |
115 | strcpy(#path, "/rd/1/"); |
- | |
116 | 113 | strcpy(#path, "/rd/1/"); |
|
- | 114 | Open_Dir(#path,ONLY_OPEN); |
|
117 | Open_Dir(#path,ONLY_OPEN); |
115 | SetEventMask(0x27); |
118 | loop() switch(WaitEvent()) |
116 | loop() switch(WaitEvent()) |
119 | { |
117 | { |
120 | case evMouse: |
118 | case evMouse: |