Rev 6250 | Rev 6253 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6250 | Rev 6251 | ||
---|---|---|---|
Line 18... | Line 18... | ||
18 | 18 | ||
19 | dword scr = FROM "scr.raw_8bit"; |
19 | dword scr = FROM "scr.raw_8bit"; |
20 | dword scr_pal[] = {0xFFFFFF,0xBBDDFF,0x4166B5,0xE0E4E6,0xAFBEDD,0xC4D4E8,0x52ACDD,0x000000, |
20 | dword scr_pal[] = {0xFFFFFF,0xBBDDFF,0x4166B5,0xE0E4E6,0xAFBEDD,0xC4D4E8,0x52ACDD,0x000000, |
Line -... | Line 21... | ||
- | 21 | 0xE9DAB2,0xC99811,0xFDF9D4,0xF8B93C,0xFDEEBE,0xFBEBA6,0xDFAF4F,0xF3D57C}; |
|
- | 22 | ||
- | 23 | #define APP_PLUS_INI_PATH "/kolibrios/settings/app_plus.ini" |
|
- | 24 | ||
- | 25 | #define APP_PLUS_INI_NOT_EXISTS "'APP+\n/kolibrios/settings/app_plus.ini is not exists.\nProgram terminated.' -tE" |
|
- | 26 | ||
- | 27 | #define WINDOW_TITLE_TEXT "Error" |
|
- | 28 | #define CONTENT_HEADER_TEXT "/KOLIBRIOS/ NOT MOUNTED" |
|
- | 29 | #define DESCRIPTION_TEXT "Try to find it manually. It should look |
|
- | 30 | like image on the right. |
|
- | 31 | Note: this action can be done only once |
|
- | 32 | per 1 session of the OS running. If you |
|
- | 33 | will choose the wrong folder then you |
|
Line 21... | Line 34... | ||
21 | 0xE9DAB2,0xC99811,0xFDF9D4,0xF8B93C,0xFDEEBE,0xFBEBA6,0xDFAF4F,0xF3D57C}; |
34 | need to reboot system to try again." |
22 | 35 | #define MANUALLY_BUTTON_TEXT "Choose /kolibrios/ folder..." |
|
23 | 36 | ||
24 | 37 | ||
- | 38 | void CheckKosMounted() |
|
25 | void CheckKosMounted() |
39 | { |
- | 40 | if (dir_exists("/kolibrios/")) |
|
- | 41 | { |
|
26 | { |
42 | if (file_exists(APP_PLUS_INI_PATH)) |
27 | if (isdir("/kolibrios/")) |
43 | io.run("syspanel", APP_PLUS_INI_PATH); |
28 | { |
44 | else |
Line 29... | Line 45... | ||
29 | io.run("syspanel", "/kolibrios/settings/app_plus.ini"); |
45 | notify(APP_PLUS_INI_NOT_EXISTS); |
Line 67... | Line 83... | ||
67 | case evReDraw: |
83 | case evReDraw: |
68 | draw_window(); |
84 | draw_window(); |
69 | } |
85 | } |
70 | } |
86 | } |
Line 71... | Line -... | ||
71 | - | ||
72 | #define WINDOW_TITLE_TEXT "Error" |
- | |
73 | #define CONTENT_HEADER_TEXT "/KOLIBRIOS/ NOT MOUNTED" |
- | |
74 | #define DESCRIPTION_TEXT "Try to find it manually. It should look |
- | |
75 | like image on the right. |
- | |
76 | Note: this action can be done only once |
- | |
77 | per 1 session of the OS running. If you |
- | |
78 | will choose the wrong folder then you |
- | |
79 | need to reboot system to try again." |
- | |
80 | #define MANUALLY_BUTTON_TEXT "Choose /kolibrios/ folder..." |
- | |
81 | - | ||
82 | 87 | ||
83 | void draw_window() |
88 | void draw_window() |
84 | { |
89 | { |
85 | incn y; |
90 | incn y; |
86 | dword x=30; |
91 | dword x=30; |