Subversion Repositories Kolibri OS

Rev

Rev 5598 | Blame | Last modification | View Log | Download | RSS feed

  1. #define MEMSIZE 0x9000
  2. #include "..\lib\strings.h"
  3. #include "..\lib\mem.h"
  4. #include "..\lib\file_system.h"
  5.  
  6.  
  7. void main()
  8. {  
  9.         dword dirbuf, fcount, filename, i;
  10.         dword dirbuf2, fcount2, filename2, j;
  11.         char cd_path[4096];
  12.         char install_path[4096];
  13.         signed int result;
  14.  
  15.         pause(200);
  16.         GetDir(#dirbuf, #fcount, "/", DIRS_ONLYREAL);
  17.  
  18.         for (i=0; i<fcount; i++)
  19.         {
  20.                 filename = i*304+dirbuf+72;
  21.                 if (!strstr(filename, "fd"))
  22.                 {
  23.                         strcpy(#cd_path, "/");
  24.                         strcat(#cd_path, filename);
  25.                         free(dirbuf2);
  26.                         GetDir(#dirbuf2, #fcount2, #cd_path, DIRS_ONLYREAL);
  27.  
  28.                         for (j=0; j<fcount2; j++)
  29.                         {
  30.                                 filename2 = j*304+dirbuf2+72;
  31.                                 strcpy(#install_path, #cd_path);
  32.                                 strcat(#install_path, "/");
  33.                                 strcat(#install_path, filename2);
  34.                                 strcat(#install_path, "/installer.kex");
  35.                                 result = RunProgram(#install_path, NULL);
  36.                                 if (result>0) ExitProcess();
  37.                         }
  38.                 }
  39.         }
  40.         notify("'KolibriN\n¥ ¬®£ã ­ ©â¨ installer.kex ­¨ ¢ ®¤­®¬ ª®à­¥ ¤¨áª !\n®¯à®¡ã©â¥ ­ ©â¨ ¨ § ¯ãáâ¨âì ¥£® ¢àãç­ãî.' -dtE");
  41.         ExitProcess();
  42. }
  43.  
  44.  
  45. stop:
  46.