| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
. |
| 6 |
|
| 7 |
|
| 8 |
#ifndef detectgame_h |
| 9 |
#define detectgame_h |
| 10 |
|
| 11 |
#include "scottdefines.h" |
| 12 |
#include <stdint.h> |
| 13 |
#include <stdio.h> |
| 14 |
|
| 15 |
GameIDType DetectGame(const char *file_name); |
| 16 |
int SeekIfNeeded(int expected_start, size_t *offset, uint8_t **ptr); |
| 17 |
GameIDType TryLoading(struct GameInfo info, int dict_start, int loud); |
| 18 |
DictionaryType GetId(size_t *offset); |
| 19 |
int FindCode(const char *x, int base); |
| 20 |
uint8_t *ReadHeader(uint8_t *ptr); |
| 21 |
int ParseHeader(int *h, HeaderType type, int *ni, int *na, int *nw, int *nr, |
| 22 |
int *mc, int *pr, int *tr, int *wl, int *lt, int *mn, |
| 23 |
int *trm); |
| 24 |
|
| 25 |
void PrintHeaderInfo(int *h, int ni, int na, int nw, int nr, int mc, int pr, |
| 26 |
int tr, int wl, int lt, int mn, int trm); |
| 27 |
|
| 28 |
extern int header[]; |
| 29 |
|
| 30 |
#endif |