kolibrios/programs/cmm/installer/installer.c
Kirill Lipatov (Leency) d898aa5f2d CMM programs: small enhancements & fixes
git-svn-id: svn://kolibrios.org@4846 a494cfbc-eb01-0410-851d-a64ba20cac60
2014-04-17 18:07:07 +00:00

48 lines
1.3 KiB
C

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