Rev 4846 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4113 | leency | 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 | |||
4114 | leency | 8 | #include "add_appl_dir.c"; |
4113 | leency | 9 | |
10 | #ifdef LANG_RUS |
||
11 | ?define T_WTITILE "Установка Kolibri N9" |
||
4846 | leency | 12 | ?define T_END "\'Установка KolibriN успешно завершена.\' -O" |
4407 | leency | 13 | ?define T_LESS_RAM "Мало свободной оперативной памяти. Могут возникнуть проблемы" |
4113 | leency | 14 | #else |
15 | ?define T_WTITILE "Kolibri N9 Setup" |
||
4846 | leency | 16 | ?define T_END "\'KolibriN install complete.\' -O" |
4407 | leency | 17 | ?define T_LESS_RAM "Too less free ram. May cause problems" |
4113 | leency | 18 | #endif |
19 | |||
20 | void main() |
||
21 | { |
||
22 | int i; |
||
23 | proc_info Process; |
||
24 | |||
4407 | leency | 25 | mem_Init(); |
26 | if (GetFreeRAM()/1024<15) notify(T_LESS_RAM); |
||
4137 | leency | 27 | |
28 | for (i=0; i<1000; i++;) |
||
4113 | leency | 29 | { |
30 | GetProcessInfo(#Process, i); |
||
4863 | leency | 31 | if (strcmpi(#Process.name, "@icon")==0) KillProcess(Process.ID); |
32 | if (strcmpi(#Process.name, "@panel")==0) KillProcess(Process.ID); |
||
33 | if (strcmpi(#Process.name, "@docky")==0) KillProcess(Process.ID); |
||
4113 | leency | 34 | } |
35 | SetAddApplDir("kolibrios", abspath("kolibrios")+1); |
||
36 | RunProgram("/sys/REFRSCRN", NULL); |
||
37 | copyf(abspath("sys"), "/rd/1"); |
||
38 | RunProgram("/sys/launcher", NULL); |
||
4846 | leency | 39 | SetSystemSkin("/kolibrios/res/skins/Yeah.skn"); |
4409 | leency | 40 | notify(T_END); |
4407 | leency | 41 | DeleteFile("/sys/3d/free3d04"); |
42 | DeleteFile("/sys/games/invaders"); |
||
43 | ExitProcess(); |
||
4113 | leency | 44 | } |
45 | |||
4407 | leency | 46 | |
4113 | leency | 47 | void copyf_Draw_Progress(dword filename) { return; } |
48 | |||
49 | |||
50 | stop:1000;>15)> |