Subversion Repositories Kolibri OS

Rev

Rev 9459 | Rev 9536 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9459 Rev 9505
Line 1... Line 1...
1
#define MEMSIZE 1024*160
1
#define MEMSIZE 1024*60
Line 2... Line 2...
2
 
2
 
3
#include "../lib/gui.h"
3
#include "../lib/gui.h"
Line 4... Line 4...
4
#include "../lib/copyf.h"
4
#include "../lib/copyf.h"
Line 36... Line 36...
36
 
36
 
37
void main()
37
void main()
38
{
38
{
39
	word btn;
39
	word btn;
40
	load_dll(libini, #lib_init,1);
40
	load_dll(libini, #lib_init,1);
41
	loop() switch(@WaitEventTimeout(300))
41
	loop() switch(WaitEvent())
42
	{
42
	{
43
		case evButton:
43
		case evButton:
44
			btn = GetButtonID();               
44
			btn = GetButtonID();               
45
			if (btn == 1) || (B_EXIT == btn) ExitProcess();
45
			if (btn == 1) || (B_EXIT == btn) ExitProcess();
Line 56... Line 56...
56
			break;
56
			break;
Line 57... Line 57...
57
		 
57
		 
58
		case evReDraw:
58
		case evReDraw:
59
			draw_window();
59
			draw_window();
60
			break;
-
 
61
 
-
 
62
		default:
-
 
63
			DrawLogo();
-
 
64
			DrawLogo();
60
			break;
65
	}
61
	}
Line 66... Line 62...
66
}
62
}
67
 
63
 
Line 106... Line 102...
106
}
102
}
Line 107... Line 103...
107
 
103
 
108
void EventInstall()
104
void EventInstall()
109
{
105
{
-
 
106
	ini_set_int stdcall ("/sys/settings/taskbar.ini", "Flags", "Attachment", 0);
-
 
107
	writing_error_channel = WRITE_ERROR_NOTIFY;
110
	ini_set_int stdcall ("/sys/settings/taskbar.ini", "Flags", "Attachment", 0);
108
	copy_state = FILE_REPLACE;
-
 
109
	//if (copyf("/kolibrios/KolibriNext/settings", "/sys/settings")) return;
-
 
110
	CopyFile("/kolibrios/KolibriNext/settings/app_plus.ini", "/sys/settings/app_plus.ini");
111
	copyf("/kolibrios/KolibriNext/settings", "/sys/settings");
111
	CopyFile("/kolibrios/KolibriNext/settings/docky.ini", "/sys/settings/docky.ini");
Line 112... Line 112...
112
	copyf("/kolibrios/KolibriNext", "/sys");
112
	CopyFile("/kolibrios/KolibriNext/settings/icon.ini", "/sys/settings/icon.ini");
113
 
113
 
114
	RestartProcessByName("/sys/@icon", MULTIPLE);
114
	RestartProcessByName("/sys/@icon", MULTIPLE);