2013-03-11 19:16:24 +01:00
|
|
|
|
#define MEMSIZE 0x9000
|
|
|
|
|
#include "..\lib\strings.h"
|
|
|
|
|
#include "..\lib\mem.h"
|
2018-04-03 15:57:56 +02:00
|
|
|
|
#include "..\lib\fs.h"
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void main()
|
|
|
|
|
{
|
|
|
|
|
dword dirbuf, fcount, filename, i;
|
|
|
|
|
dword dirbuf2, fcount2, filename2, j;
|
2018-10-01 18:41:14 +02:00
|
|
|
|
char drive_name[4096];
|
2013-03-11 19:16:24 +01:00
|
|
|
|
char install_path[4096];
|
|
|
|
|
|
2014-10-31 00:35:25 +01:00
|
|
|
|
pause(200);
|
2013-04-04 19:07:38 +02:00
|
|
|
|
GetDir(#dirbuf, #fcount, "/", DIRS_ONLYREAL);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
|
|
|
|
for (i=0; i<fcount; i++)
|
|
|
|
|
{
|
2018-10-01 18:41:14 +02:00
|
|
|
|
strcpy(#drive_name, "/");
|
|
|
|
|
strcat(#drive_name, i*304+dirbuf+72);
|
|
|
|
|
if (!strcmp(#drive_name, "/fd")) continue;
|
|
|
|
|
free(dirbuf2);
|
|
|
|
|
GetDir(#dirbuf2, #fcount2, #drive_name, DIRS_ONLYREAL);
|
2013-03-11 19:16:24 +01:00
|
|
|
|
|
2018-10-01 18:41:14 +02:00
|
|
|
|
for (j=0; j<fcount2; j++)
|
|
|
|
|
{
|
|
|
|
|
sprintf(#install_path, "%s/%s/installer.kex", #drive_name, j*304+dirbuf2+72);
|
|
|
|
|
if (RunProgram(#install_path, NULL) > 0) ExitProcess();
|
2013-03-11 19:16:24 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-04-23 18:30:49 +02:00
|
|
|
|
notify("'KolibriN\n<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> installer.kex <20><> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><>᪠!\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.' -dtE");
|
2013-03-11 19:16:24 +01:00
|
|
|
|
ExitProcess();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stop:
|