c3b428552d
git-svn-id: svn://kolibrios.org@3991 a494cfbc-eb01-0410-851d-a64ba20cac60
90 lines
2.0 KiB
C
90 lines
2.0 KiB
C
#define MEMSIZE 0xA1000
|
|
#include "..\lib\kolibri.h"
|
|
#include "..\lib\strings.h"
|
|
#include "..\lib\figures.h"
|
|
#include "..\lib\encoding.h"
|
|
#include "..\lib\file_system.h"
|
|
#include "..\lib\mem.h"
|
|
#include "..\lib\dll.h"
|
|
#include "..\lib\copyf.h"
|
|
//*.obj libraries
|
|
#include "..\lib\lib.obj\box_lib.h"
|
|
#include "..\lib\lib.obj\libio_lib.h"
|
|
#include "..\lib\lib.obj\libimg_lib.h"
|
|
#include "..\lib\lib.obj\truetype.h"
|
|
|
|
|
|
#define LOGOW 16
|
|
#define LOGOH 16
|
|
#define BLACK_H 40
|
|
#define TEXTX 20
|
|
#define WIN_W 500
|
|
#define WIN_H 350
|
|
|
|
unsigned char logo[LOGOW*LOGOH*3]= FROM "img\logo.raw";
|
|
|
|
proc_info Form;
|
|
system_colors sc;
|
|
char dialog;
|
|
enum {
|
|
HALLO,
|
|
INSTALL,
|
|
END
|
|
};
|
|
|
|
int DefineWindow(dword wtitle, wbutton)
|
|
{
|
|
sc.get();
|
|
DefineAndDrawWindow(GetScreenWidth()-WIN_W/2,GetScreenHeight()-WIN_H/2-30, WIN_W+9, WIN_H+GetSkinHeight()+4, 0x74,0xFFFfff);
|
|
DrawTitle("KolibriN 8.2a Setup");
|
|
GetProcessInfo(#Form, SelfInfo);
|
|
if (Form.status_window>2) return 0; //rolled_up
|
|
|
|
DrawBar(0, 0, Form.cwidth, BLACK_H, 0);
|
|
_PutImage(BLACK_H-LOGOW/2, BLACK_H-LOGOH/2, LOGOW,LOGOH, #logo);
|
|
WriteTextB(BLACK_H-LOGOW + LOGOW, BLACK_H-6/2, 0x90, 0xFFFfff, wtitle);
|
|
DrawBar(0, BLACK_H, Form.cwidth, Form.cheight-BLACK_H, 0xFFFfff);
|
|
DrawCaptButton(Form.cwidth-107, Form.cheight-40, 90, 24, 10, sc.work_button, sc.work_button_text,wbutton);
|
|
return 1;
|
|
}
|
|
|
|
|
|
struct sysdir
|
|
{
|
|
char name[64];
|
|
char path[64];
|
|
} sysdir;
|
|
|
|
|
|
int SetAddApplDir(dword tName, tPath)
|
|
{
|
|
int i;
|
|
strcpy(#sysdir.name, tName);
|
|
strcpy(#sysdir.path, tPath);
|
|
if (sysdir.name[0]=='/') strcpy(#sysdir.name, #sysdir.name+1);
|
|
if (sysdir.path[0]=='/') strcpy(#sysdir.path, #sysdir.path+1);
|
|
i = strlen(#sysdir.name);
|
|
if (sysdir.name[i]=='/') sysdir.name[i]='\0';
|
|
i = strlen(#sysdir.path);
|
|
if (sysdir.path[i]=='/') sysdir.path[i]='\0';
|
|
debug(#sysdir.name);
|
|
debug(#sysdir.path);
|
|
$mov eax, 30
|
|
$mov ebx, 3
|
|
ECX = #sysdir;
|
|
$int 0x40
|
|
}
|
|
|
|
|
|
#include "tmp_add.c"
|
|
#include "hallo.c";
|
|
#include "installation.c";
|
|
|
|
void main()
|
|
{
|
|
mem_Init();
|
|
HalloLoop();
|
|
}
|
|
|
|
|
|
stop: |