kolibrios-gitea/programs/cmm/kolibrin/kolibrin.c

37 lines
888 B
C
Raw Normal View History

#define MEMSIZE 0x9000
#include "..\lib\strings.h"
#include "..\lib\mem.h"
#include "..\lib\fs.h"
void main()
{
dword dirbuf, fcount, filename, i;
dword dirbuf2, fcount2, filename2, j;
char drive_name[4096];
char install_path[4096];
pause(200);
GetDir(#dirbuf, #fcount, "/", DIRS_ONLYREAL);
for (i=0; i<fcount; i++)
{
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);
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();
}
}
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");
ExitProcess();
}
stop: