Debian Codegraph @

src/helptext.c

raw symbols SCIP
1 /*
2 * OpenTyrian: A modern cross-platform port of Tyrian
3 * Copyright (C) 2007-2009 The OpenTyrian Development Team
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 #include "helptext.h"cxx . . $ `<file>/src/helptext.h`/
20
21 #include "config.h"cxx . . $ `<file>/src/config.h`/
22 #include "episodes.h"cxx . . $ `<file>/src/episodes.h`/
23 #include "file.h"cxx . . $ `<file>/src/file.h`/
24 #include "fonthand.h"cxx . . $ `<file>/src/fonthand.h`/
25 #include "menus.h"cxx . . $ `<file>/src/menus.h`/
26 #include "opentyr.h"cxx . . $ `<file>/src/opentyr.h`/
27 #include "video.h"cxx . . $ `<file>/src/video.h`/
28
29 #include <assert.h>
30 #include <string.h>
31
32 const JE_bytecxx . . $ JE_byte# menuHelpcxx . . $ menuHelp.[MENU_MAXcxx . . $ `src/helptext.h:28:9`!][11] = /* [1..maxmenu, 1..11] */
33 {
34 { 1, 34, 2, 3, 4, 5, 0, 0, 0, 0, 0 },
35 { 6, 7, 8, 9, 10, 11, 11, 12, 0, 0, 0 },
36 { 13, 14, 15, 15, 16, 17, 12, 0, 0, 0, 0 },
37 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
38 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
39 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
40 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
41 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
42 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
43 { 4, 30, 30, 3, 5, 0, 0, 0, 0, 0, 0 },
44 { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
45 { 16, 17, 15, 15, 12, 0, 0, 0, 0, 0, 0 },
46 { 31, 31, 31, 31, 32, 12, 0, 0, 0, 0, 0 },
47 { 4, 34, 3, 5, 0, 0, 0, 0, 0, 0, 0 }
48 };
49
50 JE_bytecxx . . $ JE_byte# verticalHeightcxx . . $ verticalHeight. = 7;
51 JE_bytecxx . . $ JE_byte# helpBoxColorcxx . . $ helpBoxColor. = 12;
52 JE_bytecxx . . $ JE_byte# helpBoxBrightnesscxx . . $ helpBoxBrightness. = 1;
53 JE_bytecxx . . $ JE_byte# helpBoxShadeTypecxx . . $ helpBoxShadeType. = FULL_SHADEcxx . . $ `src/fonthand.h:27:9`!;
54
55 char helpTxtcxx . . $ helpTxt.[39][231]; /* [1..39] of string [230] */
56 char pNamecxx . . $ pName.[21][16]; /* [1..21] of string [15] */
57 char miscTextcxx . . $ miscText.[HELPTEXT_MISCTEXT_COUNTcxx . . $ `src/helptext.h:37:9`!][42]; /* [1..68] of string [41] */
58 char miscTextBcxx . . $ miscTextB.[HELPTEXT_MISCTEXTB_COUNTcxx . . $ `src/helptext.h:38:9`!][HELPTEXT_MISCTEXTB_SIZEcxx . . $ `src/helptext.h:39:9`!]; /* [1..5] of string [10] */
59 char keyNamecxx . . $ keyName.[8][18]; /* [1..8] of string [17] */
60 char menuTextcxx . . $ menuText.[7][HELPTEXT_MENUTEXT_SIZEcxx . . $ `src/helptext.h:40:9`!]; /* [1..7] of string [20] */
61 char outputscxx . . $ outputs.[9][31]; /* [1..9] of string [30] */
62 char topicNamecxx . . $ topicName.[6][21]; /* [1..6] of string [20] */
63 char mainMenuHelpcxx . . $ mainMenuHelp.[HELPTEXT_MAINMENUHELP_COUNTcxx . . $ `src/helptext.h:41:9`!][66]; /* [1..34] of string [65] */
64 char inGameTextcxx . . $ inGameText.[6][21]; /* [1..6] of string [20] */
65 char detailLevelcxx . . $ detailLevel.[6][13]; /* [1..6] of string [12] */
66 char gameSpeedTextcxx . . $ gameSpeedText.[5][13]; /* [1..5] of string [12] */
67 char inputDevicescxx . . $ inputDevices.[3][13]; /* [1..3] of string [12] */
68 char networkTextcxx . . $ networkText.[HELPTEXT_NETWORKTEXT_COUNTcxx . . $ `src/helptext.h:42:9`!][HELPTEXT_NETWORKTEXT_SIZEcxx . . $ `src/helptext.h:43:9`!]; /* [1..4] of string [20] */
69 char difficultyNameBcxx . . $ difficultyNameB.[11][21]; /* [0..9] of string [20] */
70 char joyButtonNamescxx . . $ joyButtonNames.[5][21]; /* [1..5] of string [20] */
71 char superShipscxx . . $ superShips.[HELPTEXT_SUPERSHIPS_COUNTcxx . . $ `src/helptext.h:44:9`!][26]; /* [0..10] of string [25] */
72 char specialNamecxx . . $ specialName.[HELPTEXT_SPECIALNAME_COUNTcxx . . $ `src/helptext.h:45:9`!][10]; /* [1..9] of string [9] */
73 char destructHelpcxx . . $ destructHelp.[25][22]; /* [1..25] of string [21] */
74 char weaponNamescxx . . $ weaponNames.[17][17]; /* [1..17] of string [16] */
75 char destructModeNamecxx . . $ destructModeName.[DESTRUCT_MODEScxx . . $ `src/helptext.h:30:9`!][13]; /* [1..destructmodes] of string [12] */
76 char shipInfocxx . . $ shipInfo.[HELPTEXT_SHIPINFO_COUNTcxx . . $ `src/helptext.h:46:9`!][2][256]; /* [1..13, 1..2] of string */
77 char menuIntcxx . . $ menuInt.[MENU_MAXcxx . . $ `src/helptext.h:28:9`!+1][11][18]; /* [0..14, 1..11] of string [17] */
78
79 static void decrypt_stringcxx . . $ decrypt_string(a14cc78460091691).(char *s, size_t len)
80 {
81 static const unsigned char crypt_key[] = { 204, 129, 63, 255, 71, 19, 25, 62, 1, 99 };
82
83 if (len == 0)
84 return;
85
86 for (size_t i = len - 1; ; --i)
87 {
88 s[i] ^= crypt_key[i % sizeof(crypt_key)];
89 if (i == 0)
90 break;
91 s[i] ^= s[i - 1];
92 }
93 }
94
95 void read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(char *s, size_t size, FILEcxx . . $ FILE# *f)
96 {
97 Uint8cxx . . $ Uint8# len;
98 char buffer[255];
99
100 fread_u8_diecxx . . $ fread_u8_die(77ebc59a7bf9f340).(&len, 1, f);
101 fread_diecxx . . $ fread_die(82d71c9ec5b61e0f).(buffer, 1, len, f);
102
103 if (size == 0)
104 return;
105
106 decrypt_stringcxx . . $ decrypt_string(a14cc78460091691).(buffer, len);
107
108 assertcxx . . $ `<external>/4398592474888995393/assert.h:50:10`!(len < size);
109
110 len = MINcxx . . $ `src/opentyr.h:28:9`!(len, size - 1);
111 memcpycxx . . $ memcpy(cc817cb175f282d).(s, buffer, len);
112 s[len] = '\0';
113 }
114
115 void skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(FILEcxx . . $ FILE# *f)
116 {
117 Uint8cxx . . $ Uint8# len;
118 char buffer[255];
119
120 fread_u8_diecxx . . $ fread_u8_die(77ebc59a7bf9f340).(&len, 1, f);
121 fread_diecxx . . $ fread_die(82d71c9ec5b61e0f).(buffer, 1, len, f);
122 }
123
124 void JE_helpBoxcxx . . $ JE_helpBox(19e4cd32eb7ad4fc).(SDL_Surfacecxx . . $ SDL_Surface# *screen, int x, int y, const char *message, unsigned int boxwidth)
125 {
126 JE_bytecxx . . $ JE_byte# startpos, endpos, pos;
127 JE_booleancxx . . $ JE_boolean# endstring;
128
129 char substring[256];
130
131 if (strlencxx . . $ strlen(751346f8406fd082).(message) == 0)
132 {
133 return;
134 }
135
136 pos = 1;
137 endpos = 0;
138 endstring = falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!;
139
140 do
141 {
142 startpos = endpos + 1;
143
144 do
145 {
146 endpos = pos;
147 do
148 {
149 pos++;
150 if (pos == strlencxx . . $ strlen(751346f8406fd082).(message))
151 {
152 endstring = truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
153 if ((unsigned)(pos - startpos) < boxwidth)
154 {
155 endpos = pos + 1;
156 }
157 }
158
159 } while (!(message[pos-1] == ' ' || endstring));
160
161 } while (!((unsigned)(pos - startpos) > boxwidth || endstring));
162
163 SDL_strlcpycxx . . $ SDL_strlcpy(55abe9014c6d0e39).(substring, message + startpos - 1, MINcxx . . $ `src/opentyr.h:28:9`!((size_t)(endpos - startpos + 1), sizeof(substring)));
164 JE_textShadecxx . . $ JE_textShade(bb6cf87f29d3df77).(screen, x, y, substring, helpBoxColorcxx . . $ helpBoxColor., helpBoxBrightnesscxx . . $ helpBoxBrightness., helpBoxShadeTypecxx . . $ helpBoxShadeType.);
165
166 y += verticalHeightcxx . . $ verticalHeight.;
167
168 } while (!endstring);
169
170 if (endpos != pos + 1)
171 {
172 JE_textShadecxx . . $ JE_textShade(bb6cf87f29d3df77).(screen, x, y, message + endpos, helpBoxColorcxx . . $ helpBoxColor., helpBoxBrightnesscxx . . $ helpBoxBrightness., helpBoxShadeTypecxx . . $ helpBoxShadeType.);
173 }
174
175 helpBoxColorcxx . . $ helpBoxColor. = 12;
176 helpBoxShadeTypecxx . . $ helpBoxShadeType. = FULL_SHADEcxx . . $ `src/fonthand.h:27:9`!;
177 }
178
179 void JE_HBoxcxx . . $ JE_HBox(ee201c8e1efc2766).(SDL_Surfacecxx . . $ SDL_Surface# *screen, int x, int y, unsigned int messagenum, unsigned int boxwidth)
180 {
181 JE_helpBoxcxx . . $ JE_helpBox(19e4cd32eb7ad4fc).(screen, x, y, helpTxtcxx . . $ helpTxt.[messagenum-1], boxwidth);
182 }
183
184 void JE_loadHelpTextcxx . . $ JE_loadHelpText(49f6e7a06ebc5aa8).(void)
185 {
186 const unsigned int menuInt_entries[MENU_MAXcxx . . $ `src/helptext.h:28:9`! + 1] = { -1, 7, 9, 8, -1, -1, 11, -1, -1, -1, 6, 4, 6, 7, 5 };
187
188 FILEcxx . . $ FILE# *f = dir_fopen_diecxx . . $ dir_fopen_die(2493aa730c89ee72).(data_dircxx . . $ data_dir(33a1f659e94feb42).(), "tyrian.hdt", "rb");
189 fread_s32_diecxx . . $ fread_s32_die(4b35c8e6f923dc9d).(&episode1DataLoccxx . . $ episode1DataLoc., 1, f);
190
191 /*Online Help*/
192 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
193 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(helpTxt); ++i)
194 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(helpTxtcxx . . $ helpTxt.[i], sizeof(helpTxtcxx . . $ helpTxt.[i]), f);
195 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
196
197 /*Planet names*/
198 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
199 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(pName); ++i)
200 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(pNamecxx . . $ pName.[i], sizeof(pNamecxx . . $ pName.[i]), f);
201 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
202
203 /*Miscellaneous text*/
204 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
205 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(miscText); ++i)
206 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(miscTextcxx . . $ miscText.[i], sizeof(miscTextcxx . . $ miscText.[i]), f);
207 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
208
209 /*Little Miscellaneous text*/
210 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
211 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(miscTextB); ++i)
212 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(miscTextBcxx . . $ miscTextB.[i], sizeof(miscTextBcxx . . $ miscTextB.[i]), f);
213 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
214
215 /*Key names*/
216 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
217 for (unsigned int i = 0; i < menuInt_entries[6]; ++i)
218 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[6][i], sizeof(menuIntcxx . . $ menuInt.[6][i]), f);
219 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
220
221 /*Main Menu*/
222 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
223 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(menuText); ++i)
224 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuTextcxx . . $ menuText.[i], sizeof(menuTextcxx . . $ menuText.[i]), f);
225 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
226
227 /*Event text*/
228 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
229 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(outputs); ++i)
230 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(outputscxx . . $ outputs.[i], sizeof(outputscxx . . $ outputs.[i]), f);
231 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
232
233 /*Help topics*/
234 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
235 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(topicName); ++i)
236 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(topicNamecxx . . $ topicName.[i], sizeof(topicNamecxx . . $ topicName.[i]), f);
237 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
238
239 /*Main Menu Help*/
240 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
241 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(mainMenuHelp); ++i)
242 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(mainMenuHelpcxx . . $ mainMenuHelp.[i], sizeof(mainMenuHelpcxx . . $ mainMenuHelp.[i]), f);
243 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
244
245 /*Menu 1 - Main*/
246 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
247 for (unsigned int i = 0; i < menuInt_entries[1]; ++i)
248 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[1][i], sizeof(menuIntcxx . . $ menuInt.[1][i]), f);
249 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
250
251 /*Menu 2 - Items*/
252 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
253 for (unsigned int i = 0; i < menuInt_entries[2]; ++i)
254 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[2][i], sizeof(menuIntcxx . . $ menuInt.[2][i]), f);
255 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
256
257 /*Menu 3 - Options*/
258 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
259 for (unsigned int i = 0; i < menuInt_entries[3]; ++i)
260 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[3][i], sizeof(menuIntcxx . . $ menuInt.[3][i]), f);
261 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
262
263 /*InGame Menu*/
264 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
265 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(inGameText); ++i)
266 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(inGameTextcxx . . $ inGameText.[i], sizeof(inGameTextcxx . . $ inGameText.[i]), f);
267 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
268
269 /*Detail Level*/
270 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
271 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(detailLevel); ++i)
272 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(detailLevelcxx . . $ detailLevel.[i], sizeof(detailLevelcxx . . $ detailLevel.[i]), f);
273 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
274
275 /*Game speed text*/
276 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
277 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(gameSpeedText); ++i)
278 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(gameSpeedTextcxx . . $ gameSpeedText.[i], sizeof(gameSpeedTextcxx . . $ gameSpeedText.[i]), f);
279 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
280
281 // episode names
282 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
283 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(episode_name); ++i)
284 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(episode_namecxx . . $ episode_name.[i], sizeof(episode_namecxx . . $ episode_name.[i]), f);
285 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
286
287 // difficulty names
288 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
289 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(difficulty_name); ++i)
290 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(difficulty_namecxx . . $ difficulty_name.[i], sizeof(difficulty_namecxx . . $ difficulty_name.[i]), f);
291 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
292
293 // gameplay mode names
294 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
295 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(gameplay_name); ++i)
296 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(gameplay_namecxx . . $ gameplay_name.[i], sizeof(gameplay_namecxx . . $ gameplay_name.[i]), f);
297 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
298
299 /*Menu 10 - 2Player Main*/
300 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
301 for (unsigned int i = 0; i < menuInt_entries[10]; ++i)
302 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[10][i], sizeof(menuIntcxx . . $ menuInt.[10][i]), f);
303 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
304
305 /*Input Devices*/
306 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
307 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(inputDevices); ++i)
308 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(inputDevicescxx . . $ inputDevices.[i], sizeof(inputDevicescxx . . $ inputDevices.[i]), f);
309 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
310
311 /*Network text*/
312 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
313 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(networkText); ++i)
314 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(networkTextcxx . . $ networkText.[i], sizeof(networkTextcxx . . $ networkText.[i]), f);
315 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
316
317 /*Menu 11 - 2Player Network*/
318 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
319 for (unsigned int i = 0; i < menuInt_entries[11]; ++i)
320 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[11][i], sizeof(menuIntcxx . . $ menuInt.[11][i]), f);
321 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
322
323 /*HighScore Difficulty Names*/
324 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
325 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(difficultyNameB); ++i)
326 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(difficultyNameBcxx . . $ difficultyNameB.[i], sizeof(difficultyNameBcxx . . $ difficultyNameB.[i]), f);
327 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
328
329 /*Menu 12 - Network Options*/
330 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
331 for (unsigned int i = 0; i < menuInt_entries[12]; ++i)
332 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[12][i], sizeof(menuIntcxx . . $ menuInt.[12][i]), f);
333 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
334
335 /*Menu 13 - Joystick*/
336 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
337 for (unsigned int i = 0; i < menuInt_entries[13]; ++i)
338 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[13][i], sizeof(menuIntcxx . . $ menuInt.[13][i]), f);
339 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
340
341 /*Joystick Button Assignments*/
342 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
343 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(joyButtonNames); ++i)
344 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(joyButtonNamescxx . . $ joyButtonNames.[i], sizeof(joyButtonNamescxx . . $ joyButtonNames.[i]), f);
345 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
346
347 /*SuperShips - For Super Arcade Mode*/
348 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
349 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(superShips); ++i)
350 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(superShipscxx . . $ superShips.[i], sizeof(superShipscxx . . $ superShips.[i]), f);
351 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
352
353 /*SuperShips - For Super Arcade Mode*/
354 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
355 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(specialName); ++i)
356 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(specialNamecxx . . $ specialName.[i], sizeof(specialNamecxx . . $ specialName.[i]), f);
357 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
358
359 /*Secret DESTRUCT game*/
360 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
361 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(destructHelp); ++i)
362 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(destructHelpcxx . . $ destructHelp.[i], sizeof(destructHelpcxx . . $ destructHelp.[i]), f);
363 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
364
365 /*Secret DESTRUCT weapons*/
366 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
367 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(weaponNames); ++i)
368 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(weaponNamescxx . . $ weaponNames.[i], sizeof(weaponNamescxx . . $ weaponNames.[i]), f);
369 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
370
371 /*Secret DESTRUCT modes*/
372 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
373 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(destructModeName); ++i)
374 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(destructModeNamecxx . . $ destructModeName.[i], sizeof(destructModeNamecxx . . $ destructModeName.[i]), f);
375 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
376
377 /*NEW: Ship Info*/
378 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
379 for (unsigned int i = 0; i < COUNTOFcxx . . $ `src/opentyr.h:27:9`!(shipInfo); ++i)
380 {
381 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(shipInfocxx . . $ shipInfo.[i][0], sizeof(shipInfocxx . . $ shipInfo.[i][0]), f);
382 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(shipInfocxx . . $ shipInfo.[i][1], sizeof(shipInfocxx . . $ shipInfo.[i][1]), f);
383 }
384 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
385
386 /*Menu 12 - Network Options*/
387 skip_pascal_stringcxx . . $ skip_pascal_string(8d4262d45fc644ab).(f);
388 for (unsigned int i = 0; i < menuInt_entries[14]; ++i)
389 read_encrypted_pascal_stringcxx . . $ read_encrypted_pascal_string(5eeaf57e1be5eb1d).(menuIntcxx . . $ menuInt.[14][i], sizeof(menuIntcxx . . $ menuInt.[14][i]), f);
390
391 fclosecxx . . $ fclose(89bc1efcdac0ca22).(f);
392 }