Subversion Repositories Kolibri OS

Rev

Rev 5399 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3363 leency 1
//INI parser in C--, GPL licence.
2
//Leency - 2012
3
 
4
void GetIni(byte onload)
5
{
5401 leency 6
	dword eolite_ini_path = abspath("Eolite.ini");
7
	ini_get_color stdcall (eolite_ini_path, "Config", "SelectionColor", 0x94AECE);
5399 punk_joker 8
	edit2.shift_color = EAX;
5401 leency 9
	col_selec = EAX;
10
	ini_get_int stdcall (eolite_ini_path, "Config", "LineHeight", 18);
5399 punk_joker 11
	files.line_h = EAX;
5401 leency 12
	ini_get_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", 1);
5399 punk_joker 13
	show_dev_name = EAX;
5401 leency 14
	ini_get_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 0);
5399 punk_joker 15
	real_files_names_case = EAX;
3363 leency 16
}
17
 
18
 
19
void Write_Error(int error_number)
20
{
4846 leency 21
	char error_message[500];
22
	dword ii;
3434 leency 23
	if (files.current>=0) Line_ReDraw(0xFF0000, files.current);
3363 leency 24
	pause(5);
4846 leency 25
	strcpy(#error_message, "\"Eolite\n");
26
	ii = get_error(error_number);
27
	strcat(#error_message, ii);
28
	strcat(#error_message, "\" -tE");
29
	notify(#error_message);
3363 leency 30
}