8,9 → 8,8 |
{ |
dword dirbuf, fcount, filename, i; |
dword dirbuf2, fcount2, filename2, j; |
char cd_path[4096]; |
char drive_name[4096]; |
char install_path[4096]; |
signed int result; |
|
pause(200); |
GetDir(#dirbuf, #fcount, "/", DIRS_ONLYREAL); |
17,26 → 16,18 |
|
for (i=0; i<fcount; i++) |
{ |
filename = i*304+dirbuf+72; |
if (!strstr(filename, "fd")) |
{ |
strcpy(#cd_path, "/"); |
strcat(#cd_path, filename); |
strcpy(#drive_name, "/"); |
strcat(#drive_name, i*304+dirbuf+72); |
if (!strcmp(#drive_name, "/fd")) continue; |
free(dirbuf2); |
GetDir(#dirbuf2, #fcount2, #cd_path, DIRS_ONLYREAL); |
GetDir(#dirbuf2, #fcount2, #drive_name, DIRS_ONLYREAL); |
|
for (j=0; j<fcount2; j++) |
{ |
filename2 = j*304+dirbuf2+72; |
strcpy(#install_path, #cd_path); |
strcat(#install_path, "/"); |
strcat(#install_path, filename2); |
strcat(#install_path, "/installer.kex"); |
result = RunProgram(#install_path, NULL); |
if (result>0) ExitProcess(); |
sprintf(#install_path, "%s/%s/installer.kex", #drive_name, j*304+dirbuf2+72); |
if (RunProgram(#install_path, NULL) > 0) ExitProcess(); |
} |
} |
} |
notify("'KolibriN\n¥ ¬®£ã ©â¨ installer.kex ¨ ¢ ®¤®¬ ª®à¥ ¤¨áª !\n®¯à®¡ã©â¥ ©â¨ ¨ § ¯ãáâ¨âì ¥£® ¢àãçãî.' -dtE"); |
ExitProcess(); |
} |