forked from KolibriOS/kolibrios
software_widget 2.2: work with param, fix for roll-up
git-svn-id: svn://kolibrios.org@5406 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
65eca8fa95
commit
57aebb0407
@ -1,7 +1,7 @@
|
||||
C-- software_widget.c
|
||||
@del game_center
|
||||
@copy software_widget.com game_center
|
||||
@copy software_widget.com control_panel
|
||||
@copy software_widget.com system_panel
|
||||
@del software_widget.com
|
||||
@pause
|
||||
@del warning.txt
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
SOFTWARE CENTER v2.15
|
||||
SOFTWARE CENTER v2.2
|
||||
*/
|
||||
|
||||
#define MEMSIZE 0x3E80
|
||||
@ -86,8 +86,15 @@ void main()
|
||||
if (load_dll2(libini, #lib_init,1)!=0) notify("Error: library doesn't exists - libini");
|
||||
skin.load();
|
||||
|
||||
if (#param)
|
||||
{
|
||||
strcpy(#settings_ini_path, #param);
|
||||
}
|
||||
else
|
||||
{
|
||||
strcat(#settings_ini_path, #program_path + strrchr(#program_path, '/'));
|
||||
strcat(#settings_ini_path, ".ini");
|
||||
}
|
||||
load_config();
|
||||
|
||||
loop()
|
||||
@ -110,7 +117,7 @@ void main()
|
||||
sc.get();
|
||||
DefineAndDrawWindow(GetScreenWidth()-window_width/2,GetScreenHeight()-window_height/2,window_width,window_height,0x74,sc.work,"");
|
||||
GetProcessInfo(#Form, SelfInfo);
|
||||
if (Form.status_window>2) break;
|
||||
if (Form.status_window>2) { DrawTitle(#window_title); break; } else DrawTitle("");
|
||||
col_max = Form.cwidth - 10 / cell_w;
|
||||
current_item_id = 0;
|
||||
draw_top_bar();
|
||||
|
Loading…
Reference in New Issue
Block a user