[ Home ]

spear.c File Reference

Spear of Destiny data file decoder. More...

#include <stdio.h>
#include <string.h>
#include "spear_def.h"
#include "../core/wolfcore.h"
#include "../../common/platform.h"
#include "../../common/common_utils.h"
#include "../../filesys/file.h"
#include "../../string/wtstring.h"
#include "../../memory/memory.h"
#include "../../loaders/tga.h"
#include "../../image/image.h"
#include "../../image/hq2x.h"
#include "../../pak/pak.h"
#include "../wolfcore_decoder.h"

Include dependency graph for spear.c:


Functions

PRIVATE wtBoolean spear_gfx (char *dict, char *head, char *graph, W32 start, W32 end, picNum_t *picNum, char *(*GetReduxGFXFileName)(W32))
 Converts SOD graphic data.
void spear_decoder (void)
 Decodes SOD full version.
void speardemo_decoder (void)
 Decodes SOD Shareware version.

Variables

W8 spear_gamepal []
W32 _filterScale
wtBoolean _outputInDirectory
wtBoolean bRedux = true
PRIVATE const W32 CeilingColourSOD []
PRIVATE char * SOD_songs []
PRIVATE parTimes_t parTimesSOD []

Detailed Description

Spear of Destiny data file decoder.

Author:
Michael Liebscher
Date:
2007

Function Documentation

void spear_decoder ( void   ) 

Decodes SOD full version.

Returns:
Nothing.

Here is the call graph for this function:

PRIVATE wtBoolean spear_gfx ( char *  dict,
char *  head,
char *  graph,
W32  start,
W32  end,
picNum_t *  picNum,
char *(*)(W32)  GetReduxGFXFileName 
)

Converts SOD graphic data.

Parameters:
[in] dict Name of dictionary file to load.
[in] head Name of header file to load.
[in] graph Name of graphics file to load.
[in] start Offset to start of sprite data
[in] end Offset to end of sprite data
[in] picNum Pointer to picNum_t structure to
[in] GetReduxGFXFileName Call back function to get file names for graphics data.
Returns:
On success true, otherwise false.

Here is the call graph for this function:

Here is the caller graph for this function:

void speardemo_decoder ( void   ) 

Decodes SOD Shareware version.

Returns:
Nothing.

Here is the call graph for this function:


Variable Documentation

PRIVATE const W32 CeilingColourSOD[]

Initial value:

{
    0x6f6f,0x4f4f,0x1d1d,0xdede,0xdfdf,0x2e2e,0x7f7f,0x9e9e,0xaeae,0x7f7f,
    0x1d1d,0xdede,0xdfdf,0xdede,0xdfdf,0xdede,0xe1e1,0xdcdc,0x2e2e,0x1d1d,0xdcdc
}

PRIVATE parTimes_t parTimesSOD[]

Initial value:

    
{ 
     
     
     
     { 1.5, "01:30" },
     { 3.5, "03:30" },
     { 2.75,"02:45" },
     { 3.5, "03:30" },
     { 0,   "??:??" },  
     { 4.5, "04:30" },
     { 3.25,"03:15" },
     { 2.75,"02:45" },
     { 4.75,"04:45" },
     { 0,   "??:??" },  
     { 6.5, "06:30" },
     { 4.5, "04:30" },
     { 2.75,"02:45" },
     { 4.5, "04:30" },
     { 6,   "06:00" },
     { 0,   "??:??" },  
     { 6,   "06:00" },
     { 0,   "??:??" },  
     { 0,   "??:??" },  
     { 0,   "??:??" },  

}

PRIVATE char* SOD_songs[]

Initial value:

{   
    "SOD_XTIPTOE",
    "SOD_XFUNKIE",
    "SOD_XDEATH",
    "SOD_XGETYOU",  
    "SOD_ULTIMATE", 

    "SOD_DUNGEON",
    "SOD_GOINGAFT",
    "SOD_POW",
    "SOD_TWELFTH",
    "SOD_ULTIMATE", 

    "SOD_NAZI_OMI",
    "SOD_GETTHEM",
    "SOD_SUSPENSE",
    "SOD_SEARCHN",
    "SOD_ZEROHOUR",
    "SOD_ULTIMATE", 

    "SOD_XPUTIT",
    "SOD_ULTIMATE2",    

    "SOD_XJAZNAZI", 
    "SOD_XFUNKIE2", 

    "SOD_XEVIL"     
}