Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. read_folder_error:
  2.     mov   [error_pointer],read_folder_name    ;read_folder.name
  3.     jmp   error_window
  4. read_folder_1_error:
  5.     mov   [error_pointer],read_folder_1_name   ;read_folder_1.name
  6.     jmp   error_window
  7. initiation_error:
  8.     mov   [error_pointer],ini_file_name
  9.     jmp   error_window
  10. buttons_error:
  11.     mov   [error_pointer],buttons_file_name
  12.     jmp   error_window
  13. icon_error:
  14.     mov   [error_pointer],icons_file_name
  15. error_window:
  16.     mov   [file_system_error],eax
  17. .red:
  18.     call  draw_error_window
  19. .still:
  20.     mcall 10
  21.     cmp   eax,1
  22.     je    .red
  23.     cmp   eax,3
  24.     je    .button
  25.     jmp   .still
  26. .button:
  27.     mcall -1
  28.     jmp   .still
  29. ;---------------------------------------------------------------------
  30. draw_error_window:
  31.     mcall 12, 1
  32.     mcall 0,[error_window_x] ,[error_window_y], 0x03ff0000
  33.     mcall 4,<10,30>,0x90ffffff,[error_pointer]
  34.     mcall 4,<10,50>, ,error_type
  35.     mcall 47,0xa0000,[file_system_error],<140,50>,0x10ffffff
  36.     mcall 12, 2
  37.     ret
  38. ;---------------------------------------------------------------------
  39. start_error_window_thread:
  40.     mov   [file_system_error],eax
  41.     mcall 9, procinfo, -1
  42.     mov   eax,[ebx+46]
  43.     shr   eax,1
  44.     add   eax,[ebx+38]
  45.     sub   eax,40
  46.     mov   [error_window_y+2],ax
  47.     mov   eax,[ebx+42]
  48.     shr   eax,1
  49.     add   eax,[ebx+34]
  50.     sub   eax,125
  51.     mov   [error_window_x+2],ax
  52.     mcall 51,1,thread_start,thread_stack
  53.     ret
  54. ;---------------------------------------------------------------------
  55. thread_start:
  56. ;    mov   [error_pointer],start_file_data.name
  57.     jmp    error_window.red
  58. ;---------------------------------------------------------------------