2013-10-27 12:59:02 +01:00
|
|
|
#define MEMSIZE 0xA1000
|
|
|
|
#include "..\lib\kolibri.h"
|
|
|
|
#include "..\lib\strings.h"
|
|
|
|
#include "..\lib\file_system.h"
|
|
|
|
#include "..\lib\mem.h"
|
|
|
|
#include "..\lib\copyf.h"
|
|
|
|
|
2013-10-27 13:05:04 +01:00
|
|
|
#include "add_appl_dir.c";
|
2013-10-27 12:59:02 +01:00
|
|
|
|
|
|
|
#ifdef LANG_RUS
|
|
|
|
?define T_WTITILE "Установка Kolibri N9"
|
2014-04-17 20:07:07 +02:00
|
|
|
?define T_END "\'Установка KolibriN успешно завершена.\' -O"
|
2013-12-26 20:42:33 +01:00
|
|
|
?define T_LESS_RAM "Мало свободной оперативной памяти. Могут возникнуть проблемы"
|
2013-10-27 12:59:02 +01:00
|
|
|
#else
|
|
|
|
?define T_WTITILE "Kolibri N9 Setup"
|
2014-04-17 20:07:07 +02:00
|
|
|
?define T_END "\'KolibriN install complete.\' -O"
|
2013-12-26 20:42:33 +01:00
|
|
|
?define T_LESS_RAM "Too less free ram. May cause problems"
|
2013-10-27 12:59:02 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
proc_info Process;
|
|
|
|
|
2013-12-26 20:42:33 +01:00
|
|
|
mem_Init();
|
|
|
|
if (GetFreeRAM()/1024<15) notify(T_LESS_RAM);
|
2013-10-30 02:12:01 +01:00
|
|
|
|
|
|
|
for (i=0; i<1000; i++;)
|
2013-10-27 12:59:02 +01:00
|
|
|
{
|
|
|
|
GetProcessInfo(#Process, i);
|
2014-04-20 15:00:51 +02:00
|
|
|
if (strcmpi(#Process.name, "@icon")==0) KillProcess(Process.ID);
|
|
|
|
if (strcmpi(#Process.name, "@panel")==0) KillProcess(Process.ID);
|
|
|
|
if (strcmpi(#Process.name, "@docky")==0) KillProcess(Process.ID);
|
2013-10-27 12:59:02 +01:00
|
|
|
}
|
|
|
|
SetAddApplDir("kolibrios", abspath("kolibrios")+1);
|
|
|
|
RunProgram("/sys/REFRSCRN", NULL);
|
|
|
|
copyf(abspath("sys"), "/rd/1");
|
|
|
|
RunProgram("/sys/launcher", NULL);
|
2014-04-17 20:07:07 +02:00
|
|
|
SetSystemSkin("/kolibrios/res/skins/Yeah.skn");
|
2013-12-26 22:48:54 +01:00
|
|
|
notify(T_END);
|
2013-12-26 20:42:33 +01:00
|
|
|
DeleteFile("/sys/3d/free3d04");
|
|
|
|
DeleteFile("/sys/games/invaders");
|
|
|
|
ExitProcess();
|
2013-10-27 12:59:02 +01:00
|
|
|
}
|
|
|
|
|
2013-12-26 20:42:33 +01:00
|
|
|
|
2013-10-27 12:59:02 +01:00
|
|
|
void copyf_Draw_Progress(dword filename) { return; }
|
|
|
|
|
|
|
|
|
|
|
|
stop:
|