Rev 3433 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3433 | Rev 3434 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | #define COMMENT 0 |
4 | #define COMMENT 0 |
5 | #define SECTION 1 |
5 | #define SECTION 1 |
6 | #define PARAM 2 |
6 | #define PARAM 2 |
7 | #define OPTION 3 |
7 | #define OPTION 3 |
Line 8... | Line -... | ||
8 | - | ||
9 | unsigned char *ERROR_TEXT[]={ |
- | |
10 | "Code #0 - No error", |
- | |
11 | "Error #1 - Base or partition of a hard disk is not defined", |
- | |
12 | "Error #2 - Function isn't supported for this file system", |
- | |
13 | "Error #3 - Unknown file system", |
- | |
14 | "Error #4 - Reserved, is never returned", |
- | |
15 | "Error #5 - File or folder not found", |
- | |
16 | "Error #6 - End of file, EOF", |
- | |
17 | "Error #7 - Pointer lies outside of application memory", |
- | |
18 | "Error #8 - Too less disk space", |
- | |
19 | "Error #9 - FAT table is destroyed", |
- | |
20 | "Error #10 - Access denied", |
- | |
21 | "Error #11 - Device error", |
- | |
22 | 0, 0, 0, 0, 0, 0, 0, 0, 0, |
- | |
23 | 0, 0, 0, 0, 0, 0, 0, 0, 0, |
- | |
24 | "Error #30 - Not enough memory", |
- | |
25 | "Error #31 - File is not executable", |
- | |
26 | "Error #32 - Too many processes", |
- | |
Line 27... | Line 8... | ||
27 | 0}; |
8 | |
28 | 9 | ||
29 | void GetIni(byte onload) |
10 | void GetIni(byte onload) |
30 | { |
11 | { |
Line 59... | Line 40... | ||
59 | break; |
40 | break; |
60 | case 0x0a: |
41 | case 0x0a: |
61 | case 0x0d: |
42 | case 0x0d: |
62 | InfType=PARAM; |
43 | InfType=PARAM; |
63 | IF (!strcmp(#parametr,"SelectionColor")) edit2.shift_color=col_selec=StrToCol(#option); |
44 | IF (!strcmp(#parametr,"SelectionColor")) edit2.shift_color=col_selec=StrToCol(#option); |
64 | IF (!strcmp(#parametr,"LineHeight")) BUTTON_HEIGHT=atoi(#option); |
45 | IF (!strcmp(#parametr,"LineHeight")) files.line_h = atoi(#option); |
65 | IF (!strcmp(#parametr,"ShowDeviceName")) show_dev_name=atoi(#option); |
46 | IF (!strcmp(#parametr,"ShowDeviceName")) show_dev_name=atoi(#option); |
Line 66... | Line 47... | ||
66 | 47 | ||
67 | /*if (!strcmp(#section,"UserDirectories")) && (parametr) && (onload) |
48 | /*if (!strcmp(#section,"UserDirectories")) && (parametr) && (onload) |
68 | { |
49 | { |
Line 92... | Line 73... | ||
92 | } |
73 | } |
Line 93... | Line 74... | ||
93 | 74 | ||
94 | 75 | ||
95 | void Write_Error(int error_number) |
- | |
96 | { |
- | |
97 | char error[256]; |
- | |
98 | - | ||
99 | if (error_number<0) error_number=-1*error_number; |
- | |
100 | - | ||
101 | if (error_number<33) |
- | |
102 | strcpy(#error, ERROR_TEXT[error_number]); |
- | |
103 | else |
- | |
104 | { |
- | |
105 | strcpy(#error, itoa(error_number)); |
- | |
106 | strcat(#error, " - Unknown error number O_o"); |
76 | void Write_Error(int error_number) |
107 | } |
77 | { |
108 | if (curbtn>=0) Line_ReDraw(0xFF0000, curbtn); |
78 | if (files.current>=0) Line_ReDraw(0xFF0000, files.current); |
109 | pause(5); |
79 | pause(5); |
Line 110... | Line 80... | ||
110 | notify(#error); |
80 | notify(get_error(error_number)); |
111 | } |
81 | } |