SCUMM: Add some missing includes

Pre-included files are not reliable.
This commit is contained in:
Orgad Shaneh 2021-04-02 11:40:59 +03:00 committed by Filippos Karapetis
parent 529fdca7ea
commit 5c0b76ec34
5 changed files with 27 additions and 1 deletions

View File

@ -136,6 +136,12 @@ static const char *c_header =
" DO NOT EDIT MANUALLY!\n"
" */\n"
"\n"
"#ifndef SCUMM_MD5_INTERNAL_H\n"
"#define SCUMM_MD5_INTERNAL_H\n"
"\n"
"#include \"common/language.h\"\n"
"#include \"common/platform.h\"\n"
"\n"
"struct MD5Table {\n"
" const char *md5;\n"
" const char *gameid;\n"
@ -150,7 +156,9 @@ static const char *c_header =
static const char *c_footer =
" { 0, 0, 0, 0, 0, Common::UNK_LANG, Common::kPlatformUnknown }\n"
"};\n";
"};\n"
"\n"
"#endif\n";
static void parseEntry(Entry *entry, char *line) {
assert(entry);

View File

@ -23,6 +23,13 @@
#ifndef SCUMM_DETECTION_INTERNAL_H
#define SCUMM_DETECTION_INTERNAL_H
#include "common/debug.h"
#include "common/md5.h"
#include "scumm/detection_tables.h"
#include "scumm/scumm-md5.h"
#include "scumm/file_nes.h"
// Includes some shared functionalities, which is required by multiple TU's.
// Mark it as static in the header, so visibility for function is limited by the TU, and we can use it whereever required.
// This is being done, because it's necessary in detection, creating an instance, as well as in initiliasing the ScummEngine.

View File

@ -23,6 +23,8 @@
#ifndef SCUMM_DETECTION_STEAM_H
#define SCUMM_DETECTION_STEAM_H
#include "scumm/file.h"
namespace Scumm {
// The following table includes all the index files, which are embedded in the

View File

@ -28,6 +28,7 @@
#include "common/rect.h"
#include "common/util.h"
#include "audio/mididrv.h"
#include "scumm/detection.h"
#include "scumm/scumm-md5.h"

View File

@ -3,6 +3,12 @@
DO NOT EDIT MANUALLY!
*/
#ifndef SCUMM_MD5_INTERNAL_H
#define SCUMM_MD5_INTERNAL_H
#include "common/language.h"
#include "common/platform.h"
struct MD5Table {
const char *md5;
const char *gameid;
@ -730,3 +736,5 @@ static const MD5Table md5table[] = {
{ "ff05c07990061d97647f059c48c1d05a", "zak", "V2", "V2", -1, Common::DE_DEU, Common::kPlatformAtariST },
{ 0, 0, 0, 0, 0, Common::UNK_LANG, Common::kPlatformUnknown }
};
#endif