From f6ab28ae5be33aa6b662cafc7033f06fe373039b Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Sun, 31 May 2020 14:37:09 +0000 Subject: [PATCH] osupdate: final git-svn-id: svn://kolibrios.org@8013 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/installer/install.c | 2 +- programs/cmm/lib/obj/libimg.h | 1 - programs/cmm/lib/patterns/restart_process.h | 14 ++ programs/cmm/misc/osupdate.c | 190 ++++++++++++-------- 4 files changed, 128 insertions(+), 79 deletions(-) diff --git a/programs/cmm/installer/install.c b/programs/cmm/installer/install.c index e7001c0474..991e95ee9a 100644 --- a/programs/cmm/installer/install.c +++ b/programs/cmm/installer/install.c @@ -130,4 +130,4 @@ void EventInstall() draw_window(); } -void Operation_Draw_Progress(dword filename) { debug("copying: "); debugln(filename); } \ No newline at end of file +void Operation_Draw_Progress(dword filename) { } \ No newline at end of file diff --git a/programs/cmm/lib/obj/libimg.h b/programs/cmm/lib/obj/libimg.h index ac5b02d07a..26b87fe25b 100644 --- a/programs/cmm/lib/obj/libimg.h +++ b/programs/cmm/lib/obj/libimg.h @@ -299,7 +299,6 @@ struct libimg_image bg = _bg; i32.load("/sys/icons32.png"); i32.replace_color(0x00000000, bg); - debugln("wolo"); } if (icon_n>=0) i32.draw(x, y, 32, 32, 0, icon_n*32); } diff --git a/programs/cmm/lib/patterns/restart_process.h b/programs/cmm/lib/patterns/restart_process.h index 234b6dffdd..29c00bbb8a 100644 --- a/programs/cmm/lib/patterns/restart_process.h +++ b/programs/cmm/lib/patterns/restart_process.h @@ -53,5 +53,19 @@ enum { RunProgram(proc_name, ""); } +:void RestartAllProcess() { + int i; + proc_info Process, Self; + GetProcessInfo(#Self, -1); + for (i=0; i