Subversion Repositories Kolibri OS

Rev

Rev 1792 | Go to most recent revision | Blame | Compare with Previous | 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. icon_error:
  11.     mov   [error_pointer],icons_file_name
  12. error_window:
  13.     mov   [file_system_error],eax
  14. .red:
  15.     call  draw_error_window
  16. .still:
  17.     mcall 10
  18.     cmp   eax,1
  19.     je    .red
  20.     cmp   eax,3
  21.     je    .button
  22.     jmp   .still
  23. .button:
  24.     mcall -1
  25.     jmp   .still
  26. ;---------------------------------------------------------------------
  27. draw_error_window:
  28.     mcall 12, 1
  29.     mcall 0,[error_window_x] ,[error_window_y], 0x03ff0000
  30.     mcall 4,<10,30>,0x90ffffff,[error_pointer]
  31.     mcall 4,<10,50>, ,error_type
  32.     mcall 47,0xa0000,[file_system_error],<140,50>,0x10ffffff
  33.     mcall 12, 2
  34.     ret
  35. ;---------------------------------------------------------------------
  36. start_error_window_thread:
  37.     mov   [file_system_error],eax
  38.     mcall 9, procinfo, -1
  39.     mov   eax,[ebx+46]
  40.     shr   eax,1
  41.     add   eax,[ebx+38]
  42.     sub   eax,40
  43.     mov   [error_window_y+2],ax
  44.     mov   eax,[ebx+42]
  45.     shr   eax,1
  46.     add   eax,[ebx+34]
  47.     sub   eax,125
  48.     mov   [error_window_x+2],ax
  49.     mcall 51,1,thread_start,thread_stack
  50.     ret
  51. ;---------------------------------------------------------------------
  52. thread_start:
  53. ;    mov   [error_pointer],start_file_data.name
  54.     jmp    error_window.red
  55. ;---------------------------------------------------------------------