Rev 7219 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3363 | leency | 1 | #define MEMSIZE 0x9000 |
2 | #include "..\lib\strings.h" |
||
3 | #include "..\lib\mem.h" |
||
7219 | leency | 4 | #include "..\lib\fs.h" |
3363 | leency | 5 | |
6 | |||
7 | void main() |
||
8 | { |
||
9 | dword dirbuf, fcount, filename, i; |
||
10 | dword dirbuf2, fcount2, filename2, j; |
||
7422 | leency | 11 | char drive_name[4096]; |
3363 | leency | 12 | char install_path[4096]; |
13 | |||
5152 | leency | 14 | pause(200); |
3444 | leency | 15 | GetDir(#dirbuf, #fcount, "/", DIRS_ONLYREAL); |
3363 | leency | 16 | |
17 | for (i=0; i |
||
18 | { |
||
7422 | leency | 19 | strcpy(#drive_name, "/"); |
20 | strcat(#drive_name, i*304+dirbuf+72); |
||
21 | if (!strcmp(#drive_name, "/fd")) continue; |
||
22 | free(dirbuf2); |
||
23 | GetDir(#dirbuf2, #fcount2, #drive_name, DIRS_ONLYREAL); |
||
24 | |||
25 | for (j=0; j |
||
3363 | leency | 26 | { |
7422 | leency | 27 | sprintf(#install_path, "%s/%s/installer.kex", #drive_name, j*304+dirbuf2+72); |
28 | if (RunProgram(#install_path, NULL) > 0) ExitProcess(); |
||
3363 | leency | 29 | } |
30 | } |
||
4885 | leency | 31 | notify("'KolibriN\nНе могу найти installer.kex ни в одном корне диска!\nПопробуйте найти и запустить его вручную.' -dtE"); |
3363 | leency | 32 | ExitProcess(); |
33 | } |
||
34 | |||
35 | |||
36 | stop: |