void JE_loadPic(SDL_Surface *screen, uint8_t PCXnumber, bool storepal ) { PCXnumber--; FILE *f = dir_fopen_die(data_dir(), "tyrian.pic", "rb"); static bool first = true; if (first) { first = false; uint16_t temp; efread(&temp, sizeof(uint16_t), 1, f); for (int i = 0; i < PCX_NUM; i++) { efread(&pcxpos[i], sizeof(int32_t), 1, f); } pcxpos[PCX_NUM] = ftell_eof(f); } uint32_t size = pcxpos[PCXnumber + 1] - pcxpos[PCXnumber]; uint8_t *buffer = malloc(size); fseek(f, pcxpos[PCXnumber], SEEK_SET); efread(buffer, sizeof(uint8_t), size, f); fclose(f); uint8_t *p = buffer; uint8_t *s; /* screen pointer, 8-bit specific */ s = (uint8_t *)screen->pixels; for (int i = 0; i < 320 * 200; ) { if ((*p & 0xc0) == 0xc0) { i += (*p & 0x3f); memset(s, *(p + 1), (*p & 0x3f)); s += (*p & 0x3f); p += 2; } else { i++; *s = *p; s++; p++; } if (i && (i % 320 == 0)) { s += screen->pitch - 320; } } free(buffer); memcpy(colors, palettes[pcxpal[PCXnumber]], sizeof(colors)); if (storepal) set_palette(colors, 0, 255); }
void JE_loadMainShapeTables( const char *shpfile ) { #ifdef TYRIAN2000 const int SHP_NUM = 13; #else const int SHP_NUM = 12; #endif FILE *f = dir_fopen_die(data_dir(), shpfile, "rb"); JE_word shpNumb; JE_longint shpPos[SHP_NUM + 1]; // +1 for storing file length efread(&shpNumb, sizeof(JE_word), 1, f); assert(shpNumb + 1u == COUNTOF(shpPos)); for (unsigned int i = 0; i < shpNumb; ++i) efread(&shpPos[i], sizeof(JE_longint), 1, f); fseek(f, 0, SEEK_END); for (unsigned int i = shpNumb; i < COUNTOF(shpPos); ++i) shpPos[i] = ftell(f); int i; // fonts, interface, option sprites for (i = 0; i < 7; i++) { fseek(f, shpPos[i], SEEK_SET); load_sprites(i, f); } // player shot sprites shapesC1.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&shapesC1, f); i++; // player ship sprites shapes9.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&shapes9 , f); i++; // power-up sprites eShapes[5].size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&eShapes[5], f); i++; // coins, datacubes, etc sprites eShapes[4].size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&eShapes[4], f); i++; // more player shot sprites shapesW2.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&shapesW2, f); fclose(f); }
void load_sprites_file( unsigned int table, const char *filename ) { free_sprites(table); FILE *f = dir_fopen_die(data_dir(), filename, "rb"); load_sprites(table, f); fclose(f); }
void JE_loadMainShapeTables( const char *shpfile ) { const int SHP_NUM = 12; FILE *f = dir_fopen_die(data_dir(), shpfile, "rb"); JE_word shpNumb; JE_longint shpPos[SHP_NUM + 1]; // +1 for storing file length efread(&shpNumb, sizeof(JE_word), 1, f); assert(shpNumb + 1 <= COUNTOF(shpPos)); for (int i = 0; i < shpNumb; i++) { efread(&shpPos[i], sizeof(JE_longint), 1, f); } fseek(f, 0, SEEK_END); shpPos[shpNumb] = ftell(f); int i; // fonts, interface, option sprites for (i = 0; i < 7; i++) { fseek(f, shpPos[i], SEEK_SET); load_sprites(i, f); } // player shot sprites shapesC1.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&shapesC1, f); i++; // player ship sprites shapes9.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&shapes9 , f); i++; // power-up sprites eShapes6.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&eShapes6, f); i++; // coins, datacubes, etc sprites eShapes5.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&eShapes5, f); i++; // more player shot sprites shapesW2.size = shpPos[i + 1] - shpPos[i]; JE_loadCompShapesB(&shapesW2, f); fclose(f); }
void JE_loadCompShapes( Sprite2_array *sprite2s, char s ) { char buffer[20]; snprintf(buffer, sizeof(buffer), "newsh%c.shp", tolower((unsigned char)s)); FILE *f = dir_fopen_die(data_dir(), buffer, "rb"); sprite2s->size = ftell_eof(f); JE_loadCompShapesB(sprite2s, f); fclose(f); }
void JE_analyzeLevel( void ) { FILE *f = dir_fopen_die(data_dir(), levelFile, "rb"); efread(&lvlNum, sizeof(JE_word), 1, f); for (int x = 0; x < lvlNum; x++) efread(&lvlPos[x], sizeof(JE_longint), 1, f); lvlPos[lvlNum] = ftell_eof(f); fclose(f); }
void load_music( void ) { if (music_file == NULL) { music_file = dir_fopen_die(data_dir(), "music.mus", "rb"); efread(&song_count, sizeof(song_count), 1, music_file); song_offset = malloc((song_count + 1) * sizeof(song_offset)); efread(song_offset, 4, song_count, music_file); song_offset[song_count] = ftell_eof(music_file); } }
void JE_loadPCX( const char *file ) // this is only meant to load tshp2.pcx { Uint8 *s = (Uint8 *)VGAScreen->pixels; /* 8-bit specific */ SDL_RWops *f = dir_fopen_die(data_dir(), file, "rb"); efseek(f, -769, SEEK_END); if (efgetc(f) == 12) { for (int i = 0; i < 256; i++) { efread(f, &colors[i].r, 1, 1); efread(f, &colors[i].g, 1, 1); efread(f, &colors[i].b, 1, 1); } } efseek(f, 128, SEEK_SET); for (int i = 0; i < 320 * 200; ) { Uint8 p = efgetc(f); if ((p & 0xc0) == 0xc0) { i += (p & 0x3f); memset(s, efgetc(f), (p & 0x3f)); s += (p & 0x3f); } else { i++; *s = p; s++; } if (i && (i % 320 == 0)) { s += VGAScreen->pitch - 320; } } efclose(f); }
void JE_loadHelpText( void ) { FILE *f = dir_fopen_die(data_dir(), "tyrian.hdt", "rb"); efread(&episode1DataLoc, sizeof(JE_longint), 1, f); /*Online Help*/ skip_pascal_string(f); for (int i = 0; i < MAX_HELP_MESSAGE; ++i) read_encrypted_pascal_string(helpTxt[i], sizeof(helpTxt[i]), f); skip_pascal_string(f); /*Planet names*/ skip_pascal_string(f); for (int i = 0; i < 21; ++i) read_encrypted_pascal_string(pName[i], sizeof(pName[i]), f); skip_pascal_string(f); /*Miscellaneous text*/ skip_pascal_string(f); for (int i = 0; i < 68; ++i) read_encrypted_pascal_string(miscText[i], sizeof(miscText[i]), f); skip_pascal_string(f); /*Little Miscellaneous text*/ skip_pascal_string(f); for (int i = 0; i < 5; ++i) read_encrypted_pascal_string(miscTextB[i], sizeof(miscTextB[i]), f); skip_pascal_string(f); /*Key names*/ skip_pascal_string(f); for (int i = 0; i < 11; ++i) read_encrypted_pascal_string(menuInt[6][i], sizeof(menuInt[6][i]), f); skip_pascal_string(f); /*Main Menu*/ skip_pascal_string(f); for (int i = 0; i < 7; ++i) read_encrypted_pascal_string(menuText[i], sizeof(menuText[i]), f); skip_pascal_string(f); /*Event text*/ skip_pascal_string(f); for (int i = 0; i < 9; ++i) read_encrypted_pascal_string(outputs[i], sizeof(outputs[i]), f); skip_pascal_string(f); /*Help topics*/ skip_pascal_string(f); for (int i = 0; i < 6; ++i) read_encrypted_pascal_string(topicName[i], sizeof(topicName[i]), f); skip_pascal_string(f); /*Main Menu Help*/ skip_pascal_string(f); for (int i = 0; i < 34; ++i) read_encrypted_pascal_string(mainMenuHelp[i], sizeof(mainMenuHelp[i]), f); skip_pascal_string(f); /*Menu 1 - Main*/ skip_pascal_string(f); for (int i = 0; i < 7; ++i) read_encrypted_pascal_string(menuInt[1][i], sizeof(menuInt[1][i]), f); skip_pascal_string(f); /*Menu 2 - Items*/ skip_pascal_string(f); for (int i = 0; i < 9; ++i) read_encrypted_pascal_string(menuInt[2][i], sizeof(menuInt[2][i]), f); skip_pascal_string(f); /*Menu 3 - Options*/ skip_pascal_string(f); for (int i = 0; i < 8; ++i) read_encrypted_pascal_string(menuInt[3][i], sizeof(menuInt[3][i]), f); skip_pascal_string(f); /*InGame Menu*/ skip_pascal_string(f); for (int i = 0; i < 6; ++i) read_encrypted_pascal_string(inGameText[i], sizeof(inGameText[i]), f); skip_pascal_string(f); /*Detail Level*/ skip_pascal_string(f); for (int i = 0; i < 6; ++i) read_encrypted_pascal_string(detailLevel[i], sizeof(detailLevel[i]), f); skip_pascal_string(f); /*Game speed text*/ skip_pascal_string(f); for (int i = 0; i < 5; ++i) read_encrypted_pascal_string(gameSpeedText[i], sizeof(gameSpeedText[i]), f); skip_pascal_string(f); // episode names skip_pascal_string(f); for (int i = 0; i <= 5; ++i) read_encrypted_pascal_string(episode_name[i], sizeof(episode_name[i]), f); skip_pascal_string(f); // difficulty names skip_pascal_string(f); for (int i = 0; i <= 6; ++i) read_encrypted_pascal_string(difficulty_name[i], sizeof(difficulty_name[i]), f); skip_pascal_string(f); // gameplay mode names skip_pascal_string(f); for (int i = 0; i <= 4; ++i) read_encrypted_pascal_string(gameplay_name[i], sizeof(gameplay_name[i]), f); skip_pascal_string(f); /*Menu 10 - 2Player Main*/ skip_pascal_string(f); for (int i = 0; i < 6; ++i) read_encrypted_pascal_string(menuInt[10][i], sizeof(menuInt[10][i]), f); skip_pascal_string(f); /*Input Devices*/ skip_pascal_string(f); for (int i = 0; i < 3; ++i) read_encrypted_pascal_string(inputDevices[i], sizeof(inputDevices[i]), f); skip_pascal_string(f); /*Network text*/ skip_pascal_string(f); for (int i = 0; i < 4; ++i) read_encrypted_pascal_string(networkText[i], sizeof(networkText[i]), f); skip_pascal_string(f); /*Menu 11 - 2Player Network*/ skip_pascal_string(f); for (int i = 0; i < 4; ++i) read_encrypted_pascal_string(menuInt[11][i], sizeof(menuInt[11][i]), f); skip_pascal_string(f); /*HighScore Difficulty Names*/ skip_pascal_string(f); for (int i = 0; i <= 10; ++i) read_encrypted_pascal_string(difficultyNameB[i], sizeof(difficultyNameB[i]), f); skip_pascal_string(f); /*Menu 12 - Network Options*/ skip_pascal_string(f); for (int i = 0; i < 6; ++i) read_encrypted_pascal_string(menuInt[12][i], sizeof(menuInt[12][i]), f); skip_pascal_string(f); /*Menu 13 - Joystick*/ skip_pascal_string(f); for (int i = 0; i < 7; ++i) read_encrypted_pascal_string(menuInt[13][i], sizeof(menuInt[13][i]), f); skip_pascal_string(f); /*Joystick Button Assignments*/ skip_pascal_string(f); for (int i = 0; i < 5; ++i) read_encrypted_pascal_string(joyButtonNames[i], sizeof(joyButtonNames[i]), f); skip_pascal_string(f); /*SuperShips - For Super Arcade Mode*/ skip_pascal_string(f); for (int i = 0; i <= 10; ++i) read_encrypted_pascal_string(superShips[i], sizeof(superShips[i]), f); skip_pascal_string(f); /*SuperShips - For Super Arcade Mode*/ skip_pascal_string(f); for (int i = 0; i < 9; ++i) read_encrypted_pascal_string(specialName[i], sizeof(specialName[i]), f); skip_pascal_string(f); /*Secret DESTRUCT game*/ skip_pascal_string(f); for (int i = 0; i < 25; ++i) read_encrypted_pascal_string(destructHelp[i], sizeof(destructHelp[i]), f); skip_pascal_string(f); /*Secret DESTRUCT weapons*/ skip_pascal_string(f); for (int i = 0; i < 17; ++i) read_encrypted_pascal_string(weaponNames[i], sizeof(weaponNames[i]), f); skip_pascal_string(f); /*Secret DESTRUCT modes*/ skip_pascal_string(f); for (int i = 0; i < DESTRUCT_MODES; ++i) read_encrypted_pascal_string(destructModeName[i], sizeof(destructModeName[i]), f); skip_pascal_string(f); /*NEW: Ship Info*/ skip_pascal_string(f); for (int i = 0; i < 13; ++i) { read_encrypted_pascal_string(shipInfo[i][0], sizeof(shipInfo[i][0]), f); read_encrypted_pascal_string(shipInfo[i][1], sizeof(shipInfo[i][1]), f); } skip_pascal_string(f); /*Menu 12 - Network Options*/ skip_pascal_string(f); for (int i = 0; i < 5; ++i) read_encrypted_pascal_string(menuInt[14][i], sizeof(menuInt[14][i]), f); fclose(f); }
void JE_loadSndFile( const char *effects_sndfile, const char *voices_sndfile ) { JE_byte y, z; JE_word x; JE_longint templ; JE_longint sndPos[2][SAMPLE_COUNT + 1]; JE_word sndNum; FILE *fi; /* SYN: Loading offsets into TYRIAN.SND */ fi = dir_fopen_die(data_dir(), effects_sndfile, "rb"); efread(&sndNum, sizeof(sndNum), 1, fi); for (x = 0; x < sndNum; x++) { efread(&sndPos[0][x], sizeof(sndPos[0][x]), 1, fi); } fseek(fi, 0, SEEK_END); sndPos[1][sndNum] = ftell(fi); /* Store file size */ for (z = 0; z < sndNum; z++) { fseek(fi, sndPos[0][z], SEEK_SET); fxSize[z] = (sndPos[0][z+1] - sndPos[0][z]); /* Store sample sizes */ free(digiFx[z]); digiFx[z] = malloc(fxSize[z]); efread(digiFx[z], 1, fxSize[z], fi); /* JE: Load sample to buffer */ } fclose(fi); /* SYN: Loading offsets into VOICES.SND */ fi = dir_fopen_die(data_dir(), voices_sndfile, "rb"); efread(&sndNum, sizeof(sndNum), 1, fi); for (x = 0; x < sndNum; x++) { efread(&sndPos[1][x], sizeof(sndPos[1][x]), 1, fi); } fseek(fi, 0, SEEK_END); sndPos[1][sndNum] = ftell(fi); /* Store file size */ z = SAMPLE_COUNT - 9; for (y = 0; y < sndNum; y++) { fseek(fi, sndPos[1][y], SEEK_SET); templ = (sndPos[1][y+1] - sndPos[1][y]) - 100; /* SYN: I'm not entirely sure what's going on here. */ if (templ < 1) templ = 1; fxSize[z + y] = templ; /* Store sample sizes */ digiFx[z + y] = malloc(fxSize[z + y]); efread(digiFx[z + y], 1, fxSize[z + y], fi); /* JE: Load sample to buffer */ } fclose(fi); notYetLoadedSound = false; }
void JE_loadHelpText( void ) { #ifdef TYRIAN2000 const unsigned int menuInt_entries[MENU_MAX + 1] = { -1, 7, 9, 9, -1, -1, 11, -1, -1, -1, 7, 4, 6, 7, 5 }; #else const unsigned int menuInt_entries[MENU_MAX + 1] = { -1, 7, 9, 8, -1, -1, 11, -1, -1, -1, 6, 4, 6, 7, 5 }; #endif FILE *f = dir_fopen_die(data_dir(), "tyrian.hdt", "rb"); efread(&episode1DataLoc, sizeof(int32_t), 1, f); /*Online Help*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(helpTxt); ++i) read_encrypted_pascal_string(helpTxt[i], sizeof(helpTxt[i]), f); skip_pascal_string(f); /*Planet names*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(pName); ++i) read_encrypted_pascal_string(pName[i], sizeof(pName[i]), f); skip_pascal_string(f); /*Miscellaneous text*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(miscText); ++i) read_encrypted_pascal_string(miscText[i], sizeof(miscText[i]), f); skip_pascal_string(f); /*Little Miscellaneous text*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(miscTextB); ++i) read_encrypted_pascal_string(miscTextB[i], sizeof(miscTextB[i]), f); skip_pascal_string(f); /*Key names*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[6]; ++i) read_encrypted_pascal_string(menuInt[6][i], sizeof(menuInt[6][i]), f); skip_pascal_string(f); /*Main Menu*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(menuText); ++i) read_encrypted_pascal_string(menuText[i], sizeof(menuText[i]), f); skip_pascal_string(f); /*Event text*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(outputs); ++i) read_encrypted_pascal_string(outputs[i], sizeof(outputs[i]), f); skip_pascal_string(f); /*Help topics*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(topicName); ++i) read_encrypted_pascal_string(topicName[i], sizeof(topicName[i]), f); skip_pascal_string(f); /*Main Menu Help*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(mainMenuHelp); ++i) read_encrypted_pascal_string(mainMenuHelp[i], sizeof(mainMenuHelp[i]), f); skip_pascal_string(f); /*Menu 1 - Main*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[1]; ++i) read_encrypted_pascal_string(menuInt[1][i], sizeof(menuInt[1][i]), f); skip_pascal_string(f); /*Menu 2 - Items*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[2]; ++i) read_encrypted_pascal_string(menuInt[2][i], sizeof(menuInt[2][i]), f); skip_pascal_string(f); /*Menu 3 - Options*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[3]; ++i) read_encrypted_pascal_string(menuInt[3][i], sizeof(menuInt[3][i]), f); skip_pascal_string(f); /*InGame Menu*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(inGameText); ++i) read_encrypted_pascal_string(inGameText[i], sizeof(inGameText[i]), f); skip_pascal_string(f); /*Detail Level*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(detailLevel); ++i) read_encrypted_pascal_string(detailLevel[i], sizeof(detailLevel[i]), f); skip_pascal_string(f); /*Game speed text*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(gameSpeedText); ++i) read_encrypted_pascal_string(gameSpeedText[i], sizeof(gameSpeedText[i]), f); skip_pascal_string(f); // episode names skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(episode_name); ++i) read_encrypted_pascal_string(episode_name[i], sizeof(episode_name[i]), f); skip_pascal_string(f); // difficulty names skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(difficulty_name); ++i) read_encrypted_pascal_string(difficulty_name[i], sizeof(difficulty_name[i]), f); skip_pascal_string(f); // gameplay mode names skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(gameplay_name); ++i) read_encrypted_pascal_string(gameplay_name[i], sizeof(gameplay_name[i]), f); skip_pascal_string(f); /*Menu 10 - 2Player Main*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[10]; ++i) read_encrypted_pascal_string(menuInt[10][i], sizeof(menuInt[10][i]), f); skip_pascal_string(f); /*Input Devices*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(inputDevices); ++i) read_encrypted_pascal_string(inputDevices[i], sizeof(inputDevices[i]), f); skip_pascal_string(f); /*Network text*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(networkText); ++i) read_encrypted_pascal_string(networkText[i], sizeof(networkText[i]), f); skip_pascal_string(f); /*Menu 11 - 2Player Network*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[11]; ++i) read_encrypted_pascal_string(menuInt[11][i], sizeof(menuInt[11][i]), f); skip_pascal_string(f); /*HighScore Difficulty Names*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(difficultyNameB); ++i) read_encrypted_pascal_string(difficultyNameB[i], sizeof(difficultyNameB[i]), f); skip_pascal_string(f); /*Menu 12 - Network Options*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[12]; ++i) read_encrypted_pascal_string(menuInt[12][i], sizeof(menuInt[12][i]), f); skip_pascal_string(f); /*Menu 13 - Joystick*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[13]; ++i) read_encrypted_pascal_string(menuInt[13][i], sizeof(menuInt[13][i]), f); skip_pascal_string(f); /*Joystick Button Assignments*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(joyButtonNames); ++i) read_encrypted_pascal_string(joyButtonNames[i], sizeof(joyButtonNames[i]), f); skip_pascal_string(f); /*SuperShips - For Super Arcade Mode*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(superShips); ++i) read_encrypted_pascal_string(superShips[i], sizeof(superShips[i]), f); skip_pascal_string(f); /*SuperShips - For Super Arcade Mode*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(specialName); ++i) read_encrypted_pascal_string(specialName[i], sizeof(specialName[i]), f); skip_pascal_string(f); /*Secret DESTRUCT game*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(destructHelp); ++i) read_encrypted_pascal_string(destructHelp[i], sizeof(destructHelp[i]), f); skip_pascal_string(f); /*Secret DESTRUCT weapons*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(weaponNames); ++i) read_encrypted_pascal_string(weaponNames[i], sizeof(weaponNames[i]), f); skip_pascal_string(f); /*Secret DESTRUCT modes*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(destructModeName); ++i) read_encrypted_pascal_string(destructModeName[i], sizeof(destructModeName[i]), f); skip_pascal_string(f); /*NEW: Ship Info*/ skip_pascal_string(f); for (unsigned int i = 0; i < COUNTOF(shipInfo); ++i) { read_encrypted_pascal_string(shipInfo[i][0], sizeof(shipInfo[i][0]), f); read_encrypted_pascal_string(shipInfo[i][1], sizeof(shipInfo[i][1]), f); } skip_pascal_string(f); #ifndef TYRIAN2000 /*Menu 12 - Network Options*/ skip_pascal_string(f); for (unsigned int i = 0; i < menuInt_entries[14]; ++i) read_encrypted_pascal_string(menuInt[14][i], sizeof(menuInt[14][i]), f); #endif fclose(f); }