Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5253 mario79 1
;---------------------------------------------------------------------
2
;start_error_window_thread:
3
;	mcall	9,procinfo,-1
4
;	mov	eax,[ebx+46]
5
;	shr	eax,1
6
;	add	eax,[ebx+38]
7
;	sub	eax,40
8
;	mov	[error_window_y+2],ax
9
;	mov	eax,[ebx+42]
10
;	shr	eax,1
11
;	add	eax,[ebx+34]
12
;	sub	eax,125
13
;	mov	[error_window_x+2],ax
14
;	mcall	51,1,thread_start,thread_stack
15
;        DEBUGF  1, "start_error_window_thread\n"
16
;	ret
17
;---------------------------------------------------------------------
18
thread_start:
19
	mov	eax,[N_error]
20
;        DEBUGF  1, "thread_start N_error: %d\n",eax
21
;	cmp	al,1
22
;	jne	@f
23
;	mov	[N_error],load_ini_error_type
24
;	mov	[error_path],file_name
25
;	jmp	.error_type
26
;--------------------------------------
27
;@@:
28
	cmp	al,2
29
	jne	@f
30
	mov	[N_error],load_icons_error_type
31
	mov	[error_path],file_name
32
;        DEBUGF  1, "error_path: %s\n",file_name
33
	jmp	.error_type
34
;--------------------------------------
35
@@:
36
	cmp	al,3
37
	jne	@f
38
	mov	[N_error],memory_free_error_type
39
	xor	eax,eax
40
	mov	[error_path],eax
41
	mov	[error_type],eax
42
	jmp	.red
43
;--------------------------------------
44
@@:
45
	cmp	al,4
46
	jne	@f
47
	mov	[N_error],memory_get_error_type
48
	xor	eax,eax
49
	mov	[error_path],eax
50
	mov	[error_type],eax
51
	jmp	.red
52
;--------------------------------------
53
@@:
54
;	cmp	al,5
55
;	jne	@f
56
;	mov	[N_error],load_directory_error_type
57
;	mov	[error_path],dir_path
58
;	jmp	.error_type
59
;--------------------------------------
60
;@@:
61
	cmp	al,6
62
	jne	.button
63
	mov	[N_error],convert_icons_error_type
64
	mov	[error_path],file_name
65
	xor	eax,eax
66
	mov	[error_type],eax
67
	jmp	.red
68
;--------------------------------------
69
.error_type:
70
;        DEBUGF  1, ".error_type:\n"
71
	mov	eax,[error_type]
72
	shl	eax,2
73
	add	eax,error_fs_text_pointers
74
	mov	eax,[eax]
75
	mov	[error_type],eax
76
;--------------------------------------
77
.red:
78
;        DEBUGF  1, "draw_error_window\n"
79
	call	draw_error_window
80
;--------------------------------------
81
.still:
82
	mcall	10
83
	cmp	eax,1
84
	je	.red
85
	cmp	eax,2
86
	je	.key
87
	cmp	eax,3
88
	je	.button
89
	jmp	.still
90
;--------------------------------------
91
.key:
92
	mcall	2
93
	jmp	.still
94
;--------------------------------------
95
.button:
96
	mcall	-1
97
;---------------------------------------------------------------------
98
draw_error_window:
99
	mcall	12,1
100
	mcall	0,[error_window_x],[error_window_y],0x03ff0000
101
	mcall	4,<10,30>,0x90ffffff,[N_error]
102
	mov	eax,[error_path]
103
	test	eax,eax
104
	jz	@f
105
	mcall	4,<10,50>,,[error_path]
106
;--------------------------------------
107
@@:
108
	mov	eax,[error_type]
109
	test	eax,eax
110
	jz	@f
111
	mcall	4,<10,70>,,[error_type]
112
;--------------------------------------
113
@@:
114
	mcall	12,2
115
	ret
116
;---------------------------------------------------------------------