2013-10-27 15:59:02 +04: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 16:05:04 +04:00
|
|
|
|
#include "add_appl_dir.c";
|
2013-10-27 15:59:02 +04:00
|
|
|
|
|
2014-08-23 14:10:47 +04:00
|
|
|
|
?define T_END "\'<EFBFBD><EFBFBD>⠭<EFBFBD><EFBFBD><EFBFBD><EFBFBD> KolibriN <20>ᯥ譮 <20><><EFBFBD><EFBFBD><EFBFBD>襭<EFBFBD>.\' -O"
|
|
|
|
|
?define T_LESS_RAM "<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <><E1A2AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>⨢<EFBFBD><E2A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><E0AEA1><EFBFBD><EFBFBD>"
|
2013-10-27 15:59:02 +04:00
|
|
|
|
|
|
|
|
|
void main()
|
|
|
|
|
{
|
|
|
|
|
int i;
|
|
|
|
|
proc_info Process;
|
|
|
|
|
|
2013-12-26 23:42:33 +04:00
|
|
|
|
mem_Init();
|
|
|
|
|
if (GetFreeRAM()/1024<15) notify(T_LESS_RAM);
|
2013-10-30 05:12:01 +04:00
|
|
|
|
|
|
|
|
|
for (i=0; i<1000; i++;)
|
2013-10-27 15:59:02 +04:00
|
|
|
|
{
|
|
|
|
|
GetProcessInfo(#Process, i);
|
2014-04-20 17:00:51 +04:00
|
|
|
|
if (strcmpi(#Process.name, "@icon")==0) KillProcess(Process.ID);
|
|
|
|
|
if (strcmpi(#Process.name, "@docky")==0) KillProcess(Process.ID);
|
2013-10-27 15:59:02 +04:00
|
|
|
|
}
|
|
|
|
|
SetAddApplDir("kolibrios", abspath("kolibrios")+1);
|
|
|
|
|
RunProgram("/sys/REFRSCRN", NULL);
|
|
|
|
|
copyf(abspath("sys"), "/rd/1");
|
|
|
|
|
RunProgram("/sys/launcher", NULL);
|
2014-04-17 22:07:07 +04:00
|
|
|
|
SetSystemSkin("/kolibrios/res/skins/Yeah.skn");
|
2013-12-27 01:48:54 +04:00
|
|
|
|
notify(T_END);
|
2013-12-26 23:42:33 +04:00
|
|
|
|
DeleteFile("/sys/3d/free3d04");
|
|
|
|
|
DeleteFile("/sys/games/invaders");
|
2014-08-23 14:10:47 +04:00
|
|
|
|
RunProgram("/sys/tmpdisk", "a0s10");
|
|
|
|
|
pause(10);
|
|
|
|
|
copyf(abspath("tmp"), "/tmp0/1");
|
|
|
|
|
ExitProcess();
|
2013-10-27 15:59:02 +04:00
|
|
|
|
}
|
|
|
|
|
|
2013-12-26 23:42:33 +04:00
|
|
|
|
|
2013-10-27 15:59:02 +04:00
|
|
|
|
void copyf_Draw_Progress(dword filename) { return; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stop:
|