Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
959 | leency | 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 | |||
25 | |||
26 | |||
27 | |||
28 | { |
||
29 | kol_struct_import *imp; |
||
30 | |||
31 | |||
32 | if (imp == NULL) |
||
33 | kol_exit(); |
||
34 | |||
35 | |||
36 | kol_cofflib_procload (imp, "con_init"); |
||
37 | if (con_init == NULL) |
||
38 | kol_exit(); |
||
39 | |||
40 | |||
41 | kol_cofflib_procload (imp, "con_printf"); |
||
42 | if (printf == NULL) |
||
43 | kol_exit(); |
||
44 | |||
45 | |||
46 | kol_cofflib_procload (imp, "con_exit"); |
||
47 | if (_exit == NULL) |
||
48 | kol_exit(); |
||
49 | |||
50 | |||
51 | kol_cofflib_procload (imp, "con_gets"); |
||
52 | if (gets == NULL) |
||
53 | kol_exit(); |
||
54 | |||
55 | |||
56 | kol_cofflib_procload (imp, "con_getch2"); |
||
57 | if (getch == NULL) |
||
58 | kol_exit(); |
||
59 | |||
60 | |||
61 | kol_cofflib_procload (imp, "con_get_font_height"); |
||
62 | if (con_get_font_height == NULL) |
||
63 | kol_exit(); |
||
64 | |||
65 | |||
66 | kol_cofflib_procload (imp, "con_set_cursor_height"); |
||
67 | if (con_set_cursor_height == NULL) |
||
68 | kol_exit(); |
||
69 | |||
70 | |||
71 | kol_cofflib_procload (imp, "con_get_flags"); |
||
72 | if (con_get_flags == NULL) |
||
73 | kol_exit(); |
||
74 | |||
75 | |||
76 | kol_cofflib_procload (imp, "con_set_flags"); |
||
77 | if (con_set_flags == NULL) |
||
78 | kol_exit(); |
||
79 | |||
80 | |||
81 | } |
||
82 |