2013-03-11 19:16:24 +01:00
|
|
|
//INI parser in C--, GPL licence.
|
|
|
|
//Leency - 2012
|
|
|
|
|
|
|
|
void GetIni(byte onload)
|
|
|
|
{
|
2015-02-13 23:54:42 +01:00
|
|
|
dword eolite_ini_path = abspath("Eolite.ini");
|
|
|
|
ini_get_color stdcall (eolite_ini_path, "Config", "SelectionColor", 0x94AECE);
|
2015-02-13 23:17:57 +01:00
|
|
|
edit2.shift_color = EAX;
|
2015-02-13 23:54:42 +01:00
|
|
|
col_selec = EAX;
|
|
|
|
ini_get_int stdcall (eolite_ini_path, "Config", "LineHeight", 18);
|
2015-02-13 23:17:57 +01:00
|
|
|
files.line_h = EAX;
|
2015-02-13 23:54:42 +01:00
|
|
|
ini_get_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", 1);
|
2015-02-13 23:17:57 +01:00
|
|
|
show_dev_name = EAX;
|
2015-02-13 23:54:42 +01:00
|
|
|
ini_get_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 0);
|
2015-02-13 23:17:57 +01:00
|
|
|
real_files_names_case = EAX;
|
2013-03-11 19:16:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void Write_Error(int error_number)
|
|
|
|
{
|
2014-04-17 20:07:07 +02:00
|
|
|
char error_message[500];
|
|
|
|
dword ii;
|
2013-03-31 22:25:54 +02:00
|
|
|
if (files.current>=0) Line_ReDraw(0xFF0000, files.current);
|
2013-03-11 19:16:24 +01:00
|
|
|
pause(5);
|
2014-04-17 20:07:07 +02:00
|
|
|
strcpy(#error_message, "\"Eolite\n");
|
|
|
|
ii = get_error(error_number);
|
|
|
|
strcat(#error_message, ii);
|
|
|
|
strcat(#error_message, "\" -tE");
|
|
|
|
notify(#error_message);
|
2013-03-11 19:16:24 +01:00
|
|
|
}
|