diff options
Diffstat (limited to 'apps/plugins/xworld/video_data.c')
-rw-r--r-- | apps/plugins/xworld/video_data.c | 271 |
1 files changed, 271 insertions, 0 deletions
diff --git a/apps/plugins/xworld/video_data.c b/apps/plugins/xworld/video_data.c new file mode 100644 index 0000000000..e658c175d9 --- /dev/null +++ b/apps/plugins/xworld/video_data.c | |||
@@ -0,0 +1,271 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2014 Franklin Wei, Benjamin Brown | ||
11 | * Copyright (C) 2004 Gregory Montoir | ||
12 | * | ||
13 | * This program is free software; you can redistribute it and/or | ||
14 | * modify it under the terms of the GNU General Public License | ||
15 | * as published by the Free Software Foundation; either version 2 | ||
16 | * of the License, or (at your option) any later version. | ||
17 | * | ||
18 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
19 | * KIND, either express or implied. | ||
20 | * | ||
21 | ***************************************************************************/ | ||
22 | |||
23 | #include "video.h" | ||
24 | #include "video_data.h" | ||
25 | #include "stdint.h" | ||
26 | |||
27 | /* this font is based off 10-Fixed.bdf with lowercase characters | ||
28 | from 09-Fixed.bdf and a handcrafted copyright symbol */ | ||
29 | |||
30 | uint8_t video_font[FONT_SIZE] = { | ||
31 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* ' ' */ | ||
32 | 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, 0x20, 0x00, /* '!' */ | ||
33 | 0x50, 0x50, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, /* '"' */ | ||
34 | 0x50, 0x50, 0xF8, 0x50, 0xF8, 0x50, 0x50, 0x00, /* '#' */ | ||
35 | 0x20, 0x70, 0xA0, 0x70, 0x28, 0x70, 0x20, 0x00, /* '$' */ | ||
36 | 0x48, 0xA8, 0x50, 0x20, 0x50, 0xA8, 0x90, 0x00, /* '%' */ | ||
37 | 0x40, 0xA0, 0xA0, 0x40, 0xA8, 0x90, 0x68, 0x00, /* '&' */ | ||
38 | 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, /* ''' */ | ||
39 | 0x10, 0x20, 0x40, 0x40, 0x40, 0x20, 0x10, 0x00, /* '(' */ | ||
40 | 0x40, 0x20, 0x10, 0x10, 0x10, 0x20, 0x40, 0x00, /* ')' */ | ||
41 | 0x00, 0x88, 0x50, 0xF8, 0x50, 0x88, 0x00, 0x00, /* '*' */ | ||
42 | 0x00, 0x20, 0x20, 0xF8, 0x20, 0x20, 0x00, 0x00, /* '+' */ | ||
43 | 0x00, 0x00, 0x00, 0x00, 0x30, 0x20, 0x40, 0x00, /* ',' */ | ||
44 | 0x00, 0x00, 0x00, 0x00, 0xF8, 0x00, 0x00, 0x00, /* '-' */ | ||
45 | 0x00, 0x00, 0x00, 0x00, 0x20, 0x50, 0x20, 0x00, /* '.' */ | ||
46 | 0x08, 0x08, 0x10, 0x20, 0x40, 0x80, 0x80, 0x00, /* '/' */ | ||
47 | 0x20, 0x50, 0x88, 0x88, 0x88, 0x50, 0x20, 0x00, /* '0' */ | ||
48 | 0x20, 0x60, 0xA0, 0x20, 0x20, 0x20, 0xF8, 0x00, /* '1' */ | ||
49 | 0x70, 0x88, 0x08, 0x30, 0x40, 0x80, 0xF8, 0x00, /* '2' */ | ||
50 | 0xF8, 0x08, 0x10, 0x30, 0x08, 0x88, 0x70, 0x00, /* '3' */ | ||
51 | 0x10, 0x30, 0x50, 0x90, 0xF8, 0x10, 0x10, 0x00, /* '4' */ | ||
52 | 0xF8, 0x80, 0xB0, 0xC8, 0x08, 0x88, 0x70, 0x00, /* '5' */ | ||
53 | 0x30, 0x40, 0x80, 0xB0, 0xC8, 0x88, 0x70, 0x00, /* '6' */ | ||
54 | 0xF8, 0x08, 0x10, 0x10, 0x20, 0x40, 0x40, 0x00, /* '7' */ | ||
55 | 0x70, 0x88, 0x88, 0x70, 0x88, 0x88, 0x70, 0x00, /* '8' */ | ||
56 | 0x70, 0x88, 0x98, 0x68, 0x08, 0x10, 0x60, 0x00, /* '9' */ | ||
57 | 0x00, 0x60, 0x60, 0x00, 0x60, 0x60, 0x00, 0x00, /* ':' */ | ||
58 | 0x00, 0x30, 0x30, 0x00, 0x30, 0x20, 0x40, 0x00, /* ';' */ | ||
59 | 0x08, 0x10, 0x20, 0x40, 0x20, 0x10, 0x08, 0x00, /* '<' */ | ||
60 | 0x00, 0x00, 0xF8, 0x00, 0xF8, 0x00, 0x00, 0x00, /* '=' */ | ||
61 | 0x40, 0x20, 0x10, 0x08, 0x10, 0x20, 0x40, 0x00, /* '>' */ | ||
62 | 0x70, 0x88, 0x10, 0x20, 0x20, 0x00, 0x20, 0x00, /* '?' */ | ||
63 | 0x40, 0x20, 0x10, 0x10, 0x10, 0x20, 0x40, 0x00, /* ')' */ | ||
64 | 0x20, 0x50, 0x88, 0x88, 0xF8, 0x88, 0x88, 0x00, /* 'A' */ | ||
65 | 0xF0, 0x88, 0x88, 0xF0, 0x88, 0x88, 0xF0, 0x00, /* 'B' */ | ||
66 | 0x70, 0x88, 0x80, 0x80, 0x80, 0x88, 0x70, 0x00, /* 'C' */ | ||
67 | 0xF0, 0x88, 0x88, 0x88, 0x88, 0x88, 0xF0, 0x00, /* 'D' */ | ||
68 | 0xF8, 0x80, 0x80, 0xF0, 0x80, 0x80, 0xF8, 0x00, /* 'E' */ | ||
69 | 0xF8, 0x80, 0x80, 0xF0, 0x80, 0x80, 0x80, 0x00, /* 'F' */ | ||
70 | 0x70, 0x88, 0x80, 0x80, 0x98, 0x88, 0x70, 0x00, /* 'G' */ | ||
71 | 0x88, 0x88, 0x88, 0xF8, 0x88, 0x88, 0x88, 0x00, /* 'H' */ | ||
72 | 0x70, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, /* 'I' */ | ||
73 | 0x38, 0x10, 0x10, 0x10, 0x10, 0x90, 0x60, 0x00, /* 'J' */ | ||
74 | 0x88, 0x90, 0xA0, 0xC0, 0xA0, 0x90, 0x88, 0x00, /* 'K' */ | ||
75 | 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0xF8, 0x00, /* 'L' */ | ||
76 | 0x88, 0x88, 0xD8, 0xA8, 0x88, 0x88, 0x88, 0x00, /* 'M' */ | ||
77 | 0x88, 0x88, 0xC8, 0xA8, 0x98, 0x88, 0x88, 0x00, /* 'N' */ | ||
78 | 0x70, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, /* 'O' */ | ||
79 | 0xF0, 0x88, 0x88, 0xF0, 0x80, 0x80, 0x80, 0x00, /* 'P' */ | ||
80 | 0x70, 0x88, 0x88, 0x88, 0x88, 0xA8, 0x70, 0x00, /* 'Q' */ | ||
81 | 0xF0, 0x88, 0x88, 0xF0, 0xA0, 0x90, 0x88, 0x00, /* 'R' */ | ||
82 | 0x70, 0x88, 0x80, 0x70, 0x08, 0x88, 0x70, 0x00, /* 'S' */ | ||
83 | 0xF8, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x00, /* 'T' */ | ||
84 | 0x88, 0x88, 0x88, 0x88, 0x88, 0x88, 0x70, 0x00, /* 'U' */ | ||
85 | 0x88, 0x88, 0x88, 0x50, 0x50, 0x50, 0x20, 0x00, /* 'V' */ | ||
86 | 0x88, 0x88, 0x88, 0xA8, 0xA8, 0xD8, 0x88, 0x00, /* 'W' */ | ||
87 | 0x88, 0x88, 0x50, 0x20, 0x50, 0x88, 0x88, 0x00, /* 'X' */ | ||
88 | 0x88, 0x88, 0x50, 0x20, 0x20, 0x20, 0x20, 0x00, /* 'Y' */ | ||
89 | 0xF8, 0x08, 0x10, 0x20, 0x40, 0x80, 0xF8, 0x00, /* 'Z' */ | ||
90 | 0x70, 0x40, 0x40, 0x40, 0x40, 0x70, 0x00, 0x00, /* '[' */ | ||
91 | 0x80, 0x80, 0x40, 0x20, 0x10, 0x10, 0x00, 0x00, /* '\' */ | ||
92 | 0x70, 0x10, 0x10, 0x10, 0x10, 0x70, 0x00, 0x00, /* ']' */ | ||
93 | 0x20, 0x50, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* '^' */ | ||
94 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xF0, 0x00, /* '_' */ | ||
95 | 0x40, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* '`' */ | ||
96 | 0x00, 0x00, 0x70, 0x08, 0x78, 0x88, 0x78, 0x00, /* 'a' */ | ||
97 | 0x80, 0x80, 0xB0, 0xC8, 0x88, 0xC8, 0xB0, 0x00, /* 'b' */ | ||
98 | 0x00, 0x00, 0x70, 0x88, 0x80, 0x88, 0x70, 0x00, /* 'c' */ | ||
99 | 0x08, 0x08, 0x68, 0x98, 0x88, 0x98, 0x68, 0x00, /* 'd' */ | ||
100 | 0x00, 0x00, 0x70, 0x88, 0xF8, 0x80, 0x70, 0x00, /* 'e' */ | ||
101 | 0x30, 0x48, 0x40, 0xF0, 0x40, 0x40, 0x40, 0x00, /* 'f' */ | ||
102 | 0x00, 0x00, 0x60, 0x90, 0x90, 0x70, 0x10, 0x60, /* 'g' */ | ||
103 | 0x80, 0x80, 0xB0, 0xC8, 0x88, 0x88, 0x88, 0x00, /* 'h' */ | ||
104 | 0x20, 0x00, 0x60, 0x20, 0x20, 0x20, 0x70, 0x00, /* 'i' */ | ||
105 | 0x20, 0x00, 0x60, 0x20, 0x20, 0x20, 0xA0, 0x40, /* 'j' */ | ||
106 | 0x80, 0x80, 0x88, 0x90, 0xE0, 0x90, 0x88, 0x00, /* 'k' */ | ||
107 | 0x60, 0x20, 0x20, 0x20, 0x20, 0x20, 0x70, 0x00, /* 'l' */ | ||
108 | 0x00, 0x00, 0xD0, 0xA8, 0xA8, 0xA8, 0x88, 0x00, /* 'm' */ | ||
109 | 0x00, 0x00, 0xB0, 0xC8, 0x88, 0x88, 0x88, 0x00, /* 'n' */ | ||
110 | 0x00, 0x00, 0x70, 0x88, 0x88, 0x88, 0x70, 0x00, /* 'o' */ | ||
111 | 0x00, 0x00, 0xE0, 0x90, 0x90, 0xE0, 0x80, 0x80, /* 'p' */ | ||
112 | 0x00, 0x00, 0x70, 0x90, 0x90, 0x70, 0x10, 0x10, /* 'q' */ | ||
113 | 0x00, 0x00, 0xB0, 0xC8, 0x80, 0x80, 0x80, 0x00, /* 'r' */ | ||
114 | 0x00, 0x00, 0x70, 0x80, 0x70, 0x08, 0xF0, 0x00, /* 's' */ | ||
115 | 0x40, 0x40, 0xF0, 0x40, 0x40, 0x48, 0x30, 0x00, /* 't' */ | ||
116 | 0x00, 0x00, 0x88, 0x88, 0x88, 0x98, 0x68, 0x00, /* 'u' */ | ||
117 | 0x00, 0x00, 0x88, 0x88, 0x50, 0x50, 0x20, 0x00, /* 'v' */ | ||
118 | 0x00, 0x00, 0x88, 0x88, 0xA8, 0xA8, 0x50, 0x00, /* 'w' */ | ||
119 | 0x00, 0x00, 0x88, 0x50, 0x20, 0x50, 0x88, 0x00, /* 'x' */ | ||
120 | 0x00, 0x00, 0x90, 0x90, 0x90, 0x70, 0x90, 0x60, /* 'y' */ | ||
121 | 0x00, 0x00, 0xF8, 0x10, 0x20, 0x40, 0xF8, 0x00, /* 'z' */ | ||
122 | 0x18, 0x20, 0x10, 0x60, 0x10, 0x20, 0x18, 0x00, /* '{' */ | ||
123 | 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0xFE, 0x00, /* cursor */ | ||
124 | 0x38, 0x54, 0xAA, 0xA2, 0xAA, 0x54, 0x38, 0x00, /* copyright symbol */ | ||
125 | 0x70, 0x88, 0x88, 0x88, 0x88, 0x50, 0xD8, 0x00, /* omega */ | ||
126 | 0x00, 0xA0, 0x10, 0x80, 0x10, 0x80, 0x50, 0x00, /* DEL */ | ||
127 | }; | ||
128 | |||
129 | struct StrEntry video_stringsTableEng[MAX_STRING_TABLE_SIZE] = { | ||
130 | { 0x001, "B A N A N A 2000" }, | ||
131 | { 0x002, "Copyright } 2014 Banana Corporation \nGPLv2\n\nBUNIX Revision 3.14" }, | ||
132 | { 0x003, "1" }, | ||
133 | { 0x004, "3" }, | ||
134 | { 0x005, "." }, | ||
135 | { 0x006, "a" }, | ||
136 | { 0x007, "@" }, | ||
137 | { 0x008, "BANANA 2000" }, | ||
138 | { 0x00A, "R" }, | ||
139 | { 0x00B, "U" }, | ||
140 | { 0x00C, "N" }, | ||
141 | { 0x00D, "P" }, | ||
142 | { 0x00E, "R" }, | ||
143 | { 0x00F, "O" }, | ||
144 | { 0x010, "J" }, | ||
145 | { 0x011, "E" }, | ||
146 | { 0x012, "C" }, | ||
147 | { 0x013, "T" }, | ||
148 | { 0x014, "Fields 100.05Mf OK" }, | ||
149 | { 0x015, "Lines of Flux % 14.077 OK" }, | ||
150 | { 0x016, "IONS OK" }, | ||
151 | { 0x017, " %%%ddd OK" }, | ||
152 | { 0x018, "TEMP ok" }, | ||
153 | { 0x019, "EXECUTE" }, | ||
154 | { 0x01A, "V= 24%\nG: 1.05\n\nMG: 177.2l\n\nOPT: G>\n\n Field:\nI: OFF\nII: ON\nIII: ON\n\np~: I\n" }, | ||
155 | { 0x01B, "on" }, | ||
156 | { 0x01C, "-" }, | ||
157 | { 0x021, "|" }, | ||
158 | { 0x022, "--- Simulation ---" }, | ||
159 | { 0x023, " TEST WILL START IN SECONDS" }, | ||
160 | { 0x024, " 20" }, | ||
161 | { 0x025, " 19" }, | ||
162 | { 0x026, " 18" }, | ||
163 | { 0x027, " 4" }, | ||
164 | { 0x028, " 3" }, | ||
165 | { 0x029, " 2" }, | ||
166 | { 0x02A, " 1" }, | ||
167 | { 0x02B, " 0" }, | ||
168 | { 0x02C, "C A U T I O N" }, | ||
169 | { 0x031, "- Test 0:\nGenerate electron beam\n" }, | ||
170 | { 0x032, "- Test 1:\nCalculating flux coefficient\n" }, | ||
171 | { 0x033, "- Test 2:\nIncrease magnetic field\n" }, | ||
172 | { 0x034, "R E S U L T S" }, | ||
173 | { 0x035, "- NOTE:\nChances of producing:\n Anti-matter: 34 %\n Neutrino 71: 4 %\n Positron 34: 99 %\n" }, | ||
174 | { 0x036, " Continue Test y/n ?" }, | ||
175 | { 0x037, "Are You Sure?" }, | ||
176 | { 0x038, "Setting Configuration\n of accelerator\n'Verified'" }, | ||
177 | { 0x039, " Continue ?" }, | ||
178 | { 0x03C, "T___T" }, | ||
179 | { 0x03D, "OOO ~" }, | ||
180 | { 0x03E, ".40X13DD" }, | ||
181 | { 0x03F, "ferfxwre" }, | ||
182 | { 0x040, "Trfor 25%" }, | ||
183 | { 0x041, "32% 56% GOOD" }, | ||
184 | { 0x042, "E=2.7182818289" }, | ||
185 | { 0x043, "G=330.01" }, | ||
186 | { 0x044, "+" }, | ||
187 | { 0x045, "*" }, | ||
188 | { 0x046, "% 234" }, | ||
189 | { 0x047, "Gorwle 12" }, | ||
190 | { 0x048, "[[[[" }, | ||
191 | { 0x049, "Elephine Soft" }, | ||
192 | { 0x04A, "By Many talented People" }, | ||
193 | { 0x04B, " 4" }, | ||
194 | { 0x04C, " 16" }, | ||
195 | { 0x12C, "0" }, | ||
196 | { 0x12D, "1" }, | ||
197 | { 0x12E, "2" }, | ||
198 | { 0x12F, "3" }, | ||
199 | { 0x130, "4" }, | ||
200 | { 0x131, "5" }, | ||
201 | { 0x132, "6" }, | ||
202 | { 0x133, "7" }, | ||
203 | { 0x134, "8" }, | ||
204 | { 0x135, "9" }, | ||
205 | { 0x136, "A" }, | ||
206 | { 0x137, "B" }, | ||
207 | { 0x138, "C" }, | ||
208 | { 0x139, "D" }, | ||
209 | { 0x13A, "E" }, | ||
210 | { 0x13B, "F" }, | ||
211 | { 0x13C, " LEVEL CODE:" }, | ||
212 | { 0x13D, " PRESS ANY KEY TO CONTINUE" }, | ||
213 | { 0x13E, " ENTER CODE" }, | ||
214 | { 0x13F, " CODE NOT VALID!!" }, | ||
215 | { 0x140, "AN NULER" }, | ||
216 | { 0x141, " ??????\n\n\n\n\n\n\n\n\nANY KEY TO CONTINUE" }, | ||
217 | { 0x142, " ENTER THE CODE CORRELATING TO\n POSITION\n ON THE DECODER WHEEL" }, | ||
218 | { 0x143, " LOAD..." }, | ||
219 | { 0x144, " ERROR" }, | ||
220 | { 0x15E, "LDKD" }, | ||
221 | { 0x15F, "HTDC" }, | ||
222 | { 0x160, "CLLD" }, | ||
223 | { 0x161, "FXLC" }, | ||
224 | { 0x162, "KRFK" }, | ||
225 | { 0x163, "XDDJ" }, | ||
226 | { 0x164, "LBKG" }, | ||
227 | { 0x165, "KLFB" }, | ||
228 | { 0x166, "TTCT" }, | ||
229 | { 0x167, "DDRX" }, | ||
230 | { 0x168, "TBHK" }, | ||
231 | { 0x169, "BRTD" }, | ||
232 | { 0x16A, "CKJL" }, | ||
233 | { 0x16B, "LFCK" }, | ||
234 | { 0x16C, "BFLX" }, | ||
235 | { 0x16D, "XJRT" }, | ||
236 | { 0x16E, "HRTB" }, | ||
237 | { 0x16F, "HBHK" }, | ||
238 | { 0x170, "JCGB" }, | ||
239 | { 0x171, "HHFL" }, | ||
240 | { 0x172, "TFBB" }, | ||
241 | { 0x173, "TXHF" }, | ||
242 | { 0x174, "JHJL" }, | ||
243 | { 0x181, " " }, | ||
244 | { 0x182, " " }, | ||
245 | { 0x183, " " }, | ||
246 | { 0x184, " " }, | ||
247 | { 0x185, " " }, | ||
248 | { 0x186, " " }, | ||
249 | { 0x187, " " }, | ||
250 | { 0x188, " " }, | ||
251 | { 0x18B, " " }, | ||
252 | { 0x18C, " " }, | ||
253 | { 0x18D, " " }, | ||
254 | { 0x18E, " " }, | ||
255 | { 0x258, " " }, | ||
256 | { 0x259, " " }, | ||
257 | { 0x25A, " " }, | ||
258 | { 0x25B, " " }, | ||
259 | { 0x25C, " " }, | ||
260 | { 0x25D, " " }, | ||
261 | { 0x263, " " }, | ||
262 | { 0x264, " " }, | ||
263 | { 0x265, " " }, | ||
264 | { 0x190, "Hello Master." }, | ||
265 | { 0x191, "Identifiy confirmed.\nAccess granted." }, | ||
266 | { 0x192, " ACCESSING" }, | ||
267 | { 0x193, " " }, | ||
268 | { 0x194, "y\n" }, | ||
269 | { 0x193, "!!!\n" }, | ||
270 | { END_OF_STRING_DICTIONARY, "" } | ||
271 | }; | ||