Subversion Repositories Kolibri OS

Rev

Rev 5399 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. //INI parser in C--, GPL licence.
  2. //Leency - 2012
  3.  
  4. void GetIni(byte onload)
  5. {
  6.         dword eolite_ini_path = abspath("Eolite.ini");
  7.         ini_get_color stdcall (eolite_ini_path, "Config", "SelectionColor", 0x94AECE);
  8.         edit2.shift_color = EAX;
  9.         col_selec = EAX;
  10.         ini_get_int stdcall (eolite_ini_path, "Config", "LineHeight", 18);
  11.         files.line_h = EAX;
  12.         ini_get_int stdcall (eolite_ini_path, "Config", "ShowDeviceName", 1);
  13.         show_dev_name = EAX;
  14.         ini_get_int stdcall (eolite_ini_path, "Config", "RealFileNamesCase", 0);
  15.         real_files_names_case = EAX;
  16. }
  17.  
  18.  
  19. void Write_Error(int error_number)
  20. {
  21.         char error_message[500];
  22.         dword ii;
  23.         if (files.current>=0) Line_ReDraw(0xFF0000, files.current);
  24.         pause(5);
  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);
  30. }
  31.