From 65fb1ce67ee23095c55ca742efe2f030bcbf0cb0 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Mon, 3 Aug 2015 12:18:27 +0000 Subject: [PATCH] installer: add tmp disk before copying files on it, switch to io.h lib git-svn-id: svn://kolibrios.org@5662 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/installer/installer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/cmm/installer/installer.c b/programs/cmm/installer/installer.c index 6145820bb9..a2dc63d24c 100644 --- a/programs/cmm/installer/installer.c +++ b/programs/cmm/installer/installer.c @@ -1,8 +1,7 @@ #define MEMSIZE 0xA1000 -#include "..\lib\kolibri.h" #include "..\lib\strings.h" -#include "..\lib\file_system.h" #include "..\lib\mem.h" +#include "..\lib\io.h" #include "..\lib\copyf.h" #include "..\lib\patterns\restart_process.h" @@ -16,17 +15,18 @@ void main() { SetAddApplDir("kolibrios", abspath("kolibrios")+1); - RunProgram("/sys/media/kiv", "\\S__/kolibrios/res/Wallpapers/In the wind there is longing.png"); - copyf(abspath("tmp"), "/tmp0/1"); + io.run("/sys/media/kiv", "\\S__/kolibrios/res/Wallpapers/In the wind there is longing.png"); copyf(abspath("sys"), "/sys"); RestartProcessByName("@icon", MULTIPLE); RestartProcessByName("@taskbar", SINGLE); RestartProcessByName("@docky", SINGLE); notify(T_END); + io.run("/sys/tmpdisk", "a0s10"); + pause(50); + copyf(abspath("tmp"), "/tmp0/1"); ExitProcess(); } void copyf_Draw_Progress(dword filename) { return; } - stop: \ No newline at end of file