Subversion Repositories Kolibri OS

Rev

Rev 4407 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #define MEMSIZE 0xA1000
  2. #include "..\lib\kolibri.h"
  3. #include "..\lib\strings.h"
  4. #include "..\lib\file_system.h"
  5. #include "..\lib\mem.h"
  6. #include "..\lib\copyf.h"
  7.  
  8. #include "add_appl_dir.c";
  9.  
  10. #ifdef LANG_RUS
  11.         ?define T_WTITILE "Установка Kolibri N9"
  12.         ?define T_END "Установка KolibriN успешно завершена."
  13.         ?define T_LESS_RAM "Мало свободной оперативной памяти. Могут возникнуть проблемы"
  14. #else
  15.         ?define T_WTITILE "Kolibri N9 Setup"
  16.         ?define T_END "KolibriN install complete."
  17.         ?define T_LESS_RAM "Too less free ram. May cause problems"
  18. #endif
  19.  
  20. void main()
  21. {
  22.         int i;
  23.         proc_info Process;
  24.  
  25.         mem_Init();
  26.         if (GetFreeRAM()/1024<15) notify(T_LESS_RAM);
  27.  
  28.         for (i=0; i<1000; i++;)
  29.         {
  30.                 GetProcessInfo(#Process, i);
  31.                 if (strcmp(#Process.name, "@ICON")==0) KillProcess(Process.ID);
  32.         }
  33.         SetAddApplDir("kolibrios", abspath("kolibrios")+1);
  34.         RunProgram("/sys/REFRSCRN", NULL);
  35.         copyf(abspath("sys"), "/rd/1");
  36.         RunProgram("/sys/launcher", NULL);
  37.         SetSystemSkin("/kolibrios/res/skins/OpusN.skn");
  38.         notify(T_END);
  39.         DeleteFile("/sys/3d/free3d04");
  40.         DeleteFile("/sys/games/invaders");
  41.         ExitProcess(); 
  42. }
  43.  
  44.  
  45. void copyf_Draw_Progress(dword filename) { return; }
  46.  
  47.  
  48. stop: