Subversion Repositories Kolibri OS

Rev

Rev 4407 | 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"
12
	?define T_END "Установка KolibriN успешно завершена."
4407 leency 13
	?define T_LESS_RAM "Мало свободной оперативной памяти. Могут возникнуть проблемы"
4113 leency 14
#else
15
	?define T_WTITILE "Kolibri N9 Setup"
16
	?define T_END "KolibriN install complete."
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);
4137 leency 31
		if (strcmp(#Process.name, "@ICON")==0) KillProcess(Process.ID);
4113 leency 32
	}
33
	SetAddApplDir("kolibrios", abspath("kolibrios")+1);
34
	RunProgram("/sys/REFRSCRN", NULL);
35
	copyf(abspath("sys"), "/rd/1");
36
	RunProgram("/sys/launcher", NULL);
4409 leency 37
	SetSystemSkin("/kolibrios/res/skins/OpusN.skn");
38
	notify(T_END);
4407 leency 39
	DeleteFile("/sys/3d/free3d04");
40
	DeleteFile("/sys/games/invaders");
41
	ExitProcess();
4113 leency 42
}
43
 
4407 leency 44
 
4113 leency 45
void copyf_Draw_Progress(dword filename) { return; }
46
 
47
 
48
stop: