|
|
/* $Id$ */
|
|
|
|
|
|
/** @file gfxinit.cpp */
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
#include "openttd.h"
|
|
|
#include "debug.h"
|
|
|
#include "functions.h"
|
|
|
#include "gfxinit.h"
|
|
|
#include "spritecache.h"
|
|
|
#include "table/sprites.h"
|
|
|
#include "fileio.h"
|
|
|
#include "fios.h"
|
|
|
#include "string.h"
|
|
|
#include "newgrf.h"
|
|
|
#include "md5.h"
|
|
|
#include "variables.h"
|
|
|
#include "fontcache.h"
|
|
|
#include "gfx_func.h"
|
|
|
#include <string.h>
|
|
|
|
|
|
struct MD5File {
|
|
|
const char * filename; ///< filename
|
|
|
md5_byte_t hash[16]; ///< md5 sum of the file
|
|
|
};
|
|
|
|
|
|
struct FileList {
|
|
|
MD5File basic[2]; ///< GRF files that always have to be loaded
|
|
|
MD5File landscape[3]; ///< Landscape specific grf files
|
|
|
MD5File sound; ///< Sound samples
|
|
|
MD5File chars; ///< GRF File with character replacements
|
|
|
MD5File openttd; ///< GRF File with OTTD specific graphics
|