Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1665 | Nasarus | 1 | |
2 | |||
3 | |||
4 | #define CON_COLOR_GREEN 2 |
||
5 | #define CON_COLOR_RED 4 |
||
6 | #define CON_COLOR_BRIGHT 8 |
||
7 | /* цвет фона */ |
||
8 | #define CON_BGR_BLUE 0x10 |
||
9 | #define CON_BGR_GREEN 0x20 |
||
10 | #define CON_BGR_RED 0x40 |
||
11 | #define CON_BGR_BRIGHT 0x80 |
||
12 | |||
13 | |||
14 | |||
15 | |||
16 | void (* _cdecl printf)(const char* format,...); |
||
17 | void (* _stdcall _exit)(char bCloseWindow); |
||
18 | void (* __stdcall gets)(char* str, int n); |
||
19 | int (* __stdcall getch)(void); |
||
20 | int (* __stdcall con_get_font_height)(void); |
||
21 | int (* __stdcall con_set_cursor_height)(int new_height); |
||
22 | unsigned (*__stdcall con_get_flags)(void); |
||
23 | unsigned (*__stdcall con_set_flags)(unsigned new_flags); |
||
24 | void (*__stdcall con_cls)(void); |
||
25 | |||
26 | |||
27 | |||
28 | |||
29 | { |
||
30 | kol_struct_import *imp; |
||
31 | |||
32 | |||
33 | if (imp == NULL) |
||
34 | kol_exit(); |
||
35 | |||
36 | |||
37 | kol_cofflib_procload (imp, "con_init"); |
||
38 | if (con_init == NULL) |
||
39 | kol_exit(); |
||
40 | |||
41 | |||
42 | kol_cofflib_procload (imp, "con_printf"); |
||
43 | if (printf == NULL) |
||
44 | kol_exit(); |
||
45 | |||
46 | |||
47 | kol_cofflib_procload (imp, "con_exit"); |
||
48 | if (_exit == NULL) |
||
49 | kol_exit(); |
||
50 | |||
51 | |||
52 | kol_cofflib_procload (imp, "con_gets"); |
||
53 | if (gets == NULL) |
||
54 | kol_exit(); |
||
55 | |||
56 | |||
57 | kol_cofflib_procload (imp, "con_getch2"); |
||
58 | if (getch == NULL) |
||
59 | kol_exit(); |
||
60 | |||
61 | |||
62 | kol_cofflib_procload (imp, "con_get_font_height"); |
||
63 | if (con_get_font_height == NULL) |
||
64 | kol_exit(); |
||
65 | |||
66 | |||
67 | kol_cofflib_procload (imp, "con_set_cursor_height"); |
||
68 | if (con_set_cursor_height == NULL) |
||
69 | kol_exit(); |
||
70 | |||
71 | |||
72 | kol_cofflib_procload (imp, "con_get_flags"); |
||
73 | if (con_get_flags == NULL) |
||
74 | kol_exit(); |
||
75 | |||
76 | |||
77 | kol_cofflib_procload (imp, "con_set_flags"); |
||
78 | if (con_set_flags == NULL) |
||
79 | kol_exit(); |
||
80 | |||
81 | |||
82 | kol_cofflib_procload (imp, "con_cls"); |
||
83 | if (con_cls == NULL) |
||
84 | kol_exit(); |
||
85 | |||
86 | |||
87 | } |
||
88 |