Subversion Repositories Kolibri OS

Rev

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

Rev 5405 Rev 5406
Line 1... Line 1...
1
/*
1
/*
2
SOFTWARE CENTER v2.15
2
SOFTWARE CENTER v2.2
3
*/
3
*/
Line 4... Line 4...
4
 
4
 
5
#define MEMSIZE 0x3E80
5
#define MEMSIZE 0x3E80
6
#include "..\lib\kolibri.h" 
6
#include "..\lib\kolibri.h" 
Line 84... Line 84...
84
	if (load_dll2(libio,  #libio_init,1)!=0) notify("Error: library doesn't exists - libio");
84
	if (load_dll2(libio,  #libio_init,1)!=0) notify("Error: library doesn't exists - libio");
85
	if (load_dll2(libimg, #libimg_init,1)!=0) notify("Error: library doesn't exists - libimg");
85
	if (load_dll2(libimg, #libimg_init,1)!=0) notify("Error: library doesn't exists - libimg");
86
	if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini");
86
	if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini");
87
	skin.load();
87
	skin.load();
Line -... Line 88...
-
 
88
 
-
 
89
	if (#param)
-
 
90
	{
-
 
91
		strcpy(#settings_ini_path, #param);
-
 
92
	}
-
 
93
	else
88
 
94
	{
89
	strcat(#settings_ini_path, #program_path + strrchr(#program_path, '/'));
95
		strcat(#settings_ini_path, #program_path + strrchr(#program_path, '/'));
-
 
96
		strcat(#settings_ini_path, ".ini");		
90
	strcat(#settings_ini_path, ".ini");
97
	}
Line 91... Line 98...
91
	load_config();
98
	load_config();
92
 
99
 
93
	loop()
100
	loop()
Line 108... Line 115...
108
 
115
 
109
         case evReDraw:
116
         case evReDraw:
110
			sc.get();
117
			sc.get();
111
			DefineAndDrawWindow(GetScreenWidth()-window_width/2,GetScreenHeight()-window_height/2,window_width,window_height,0x74,sc.work," ");
118
			DefineAndDrawWindow(GetScreenWidth()-window_width/2,GetScreenHeight()-window_height/2,window_width,window_height,0x74,sc.work,"");
112
			GetProcessInfo(#Form, SelfInfo);
119
			GetProcessInfo(#Form, SelfInfo);
113
			if (Form.status_window>2) break;
120
			if (Form.status_window>2) { DrawTitle(#window_title); break; } else DrawTitle("");
114
			col_max = Form.cwidth - 10 / cell_w;
121
			col_max = Form.cwidth - 10 / cell_w;
115
			current_item_id = 0;
122
			current_item_id = 0;
116
			draw_top_bar();
123
			draw_top_bar();
117
			ini_enum_sections stdcall (#settings_ini_path, #draw_section);
124
			ini_enum_sections stdcall (#settings_ini_path, #draw_section);