#include "wolfcore_decoder.h"
#include "../common/platform.h"
#include "../common/common_utils.h"
#include "../string/wtstring.h"
#include "../filesys/file.h"
#include "../memory/memory.h"
#include "../zlib/zlib.h"
Data Structures | |
struct | dataDecoder_s |
Defines | |
#define | CRC_AUDIOHED_WL6_ACTIVISION 0x2F3BCB70; |
#define | CRC_AUDIOT_WL6_ACTIVISION 0xC79EFD4C; |
#define | CRC_GAMEMAPS_WL6_ACTIVISION 0xADA5C827; |
#define | CRC_MAPHEAD_WL6_ACTIVISION 0x15803E9; |
#define | CRC_VGADICT_WL6_ACTIVISION 0xAA22054E; |
#define | CRC_VGAGRAPH_WL6_ACTIVISION 0xA4B1DE1D; |
#define | CRC_VGAHEAD_WL6_ACTIVISION 0xAB2B44D3; |
#define | CRC_VSWAP_WL6_ACTIVISION 0xE610C664; |
#define | CRC_AUDIOHED_WL6_APOGEE 0x2F3BCB70; |
#define | CRC_AUDIOT_WL6_APOGEE 0xC79EFD4C; |
#define | CRC_GAMEMAPS_WL6_APOGEE 0xADA5C827; |
#define | CRC_MAPHEAD_WL6_APOGEE 0x15803E9; |
#define | CRC_VGADICT_WL6_APOGEE 0x8B4AD0F8; |
#define | CRC_VGAGRAPH_WL6_APOGEE 0xE0DF1EA0; |
#define | CRC_VGAHEAD_WL6_APOGEE 0x27EE37C4; |
#define | CRC_VSWAP_WL6_APOGEE 0x859E8FFC; |
#define | CRC_VSWAP_SOD 0x591CC4DC; |
#define | CRC_VSWAP_SD1 0x591CC4DC; |
#define | CRC_VSWAP_SD2 0x861DCBF7; |
#define | CRC_VSWAP_SD3 0x1DB521A; |
Typedefs | |
typedef struct dataDecoder_s | dataDecoder_t |
Functions | |
void | wolffull_decoder (void) |
Decodes Wolfenstein 3-D full version. | |
void | wolfshare1_decoder (void) |
Decodes Wolfenstein 3-D Shareware version. | |
void | wolfshare14_decoder (void) |
Decodes Wolfenstein 3-D Shareware 1.4 version. | |
void | Macintosh_Decoder (void) |
Interface to Macintosh data extractor. | |
void | wolf3do_decoder (void) |
Interface to Wolfenstein 3DO data extractor. | |
void | spear_decoder (void) |
Decodes SOD full version. | |
void | speardemo_decoder (void) |
Decodes SOD Shareware version. | |
void | blakestoneAGfull_decoder (void) |
Decodes Blake Stone Aliens of Gold Full Version data. | |
void | blakestoneAGshare_decoder (void) |
Decodes Blake Stone Aliens of Gold Shareware data. | |
void | blakestonePS_decoder (void) |
Decodes Blake Stone Planet Strike data. | |
void | corridor7_decoder (void) |
Decodes Corridor 7 data. | |
void | corridor7share_decoder (void) |
Decodes Corridor 7 Shareware data. | |
void | super3dNoahsArk_decoder (void) |
Decodes Super 3D Noah's Ark data files. | |
void | obc_decoder (void) |
Decodes Operation: Body Count data files. | |
void | obcshare_decoder (void) |
Decodes Operation: Body Count Shareware data files. | |
PRIVATE wtBoolean | buildCacheDirectories (void) |
Create cache directories. | |
PRIVATE void | deleteCacheDirectories (void) |
Remove cache directories. | |
PRIVATE void | CheckFiles_Wolfenstein () |
PRIVATE void | CheckFiles_SOD () |
PRIVATE void | CheckFilesForIntegrity (W32 *flag) |
Check files for integrity. | |
PRIVATE void | CheckForDataFiles (W32 *flag) |
Check to see which data files are present. | |
PUBLIC void | wolfDataDecipher (void) |
Wolfenstein data decoder. | |
Variables | |
PRIVATE const char * | BASEDIR = "base/" |
W32 | _gameVersion |
const char * | WPFileExt [] |
PRIVATE dataDecoder_t | dd_decoder [] |
PRIVATE W32 | ddcodemax = sizeof( dd_decoder ) / sizeof( dd_decoder[ 0 ] ) |
void blakestoneAGfull_decoder | ( | void | ) |
Decodes Blake Stone Aliens of Gold Full Version data.
void blakestoneAGshare_decoder | ( | void | ) |
Decodes Blake Stone Aliens of Gold Shareware data.
void blakestonePS_decoder | ( | void | ) |
Decodes Blake Stone Planet Strike data.
PRIVATE wtBoolean buildCacheDirectories | ( | void | ) |
Create cache directories.
PRIVATE void CheckFilesForIntegrity | ( | W32 * | flag | ) |
Check files for integrity.
[in,out] | flag | Flag value returned from CheckForDataFiles |
PRIVATE void CheckForDataFiles | ( | W32 * | flag | ) |
Check to see which data files are present.
[in,out] | flag | Zero nothing found. See WDExtFlags for more details. |
void corridor7_decoder | ( | void | ) |
Decodes Corridor 7 data.
void corridor7share_decoder | ( | void | ) |
Decodes Corridor 7 Shareware data.
void spear_decoder | ( | void | ) |
Decodes SOD full version.
void speardemo_decoder | ( | void | ) |
Decodes SOD Shareware version.
PUBLIC void wolfDataDecipher | ( | void | ) |
Wolfenstein data decoder.
void wolffull_decoder | ( | void | ) |
Decodes Wolfenstein 3-D full version.
void wolfshare14_decoder | ( | void | ) |
Decodes Wolfenstein 3-D Shareware 1.4 version.
void wolfshare1_decoder | ( | void | ) |
Decodes Wolfenstein 3-D Shareware version.
PRIVATE dataDecoder_t dd_decoder[] |
Initial value:
{ { wolffull_decoder }, { wolfshare1_decoder }, { wolfshare14_decoder }, { Macintosh_Decoder }, { wolf3do_decoder }, { spear_decoder }, { speardemo_decoder }, { blakestoneAGfull_decoder }, { blakestoneAGshare_decoder }, { blakestonePS_decoder }, { corridor7_decoder }, { corridor7share_decoder }, { super3dNoahsArk_decoder }, { obc_decoder }, { obcshare_decoder }, { NULL } }
const char* WPFileExt[] |
Initial value:
{ "*.WL6", "*.WL1", "*.WL1", "*.REZ", "*.3DO", "*.SOD", "*.SDM", "*.BS6", "*.BS1", "*.VSI", "*.CO7", "*.DMO", "*.N3D", "*.BC", "*.BC", NULL }