diff options
author | Matthew Hoops | 2011-12-12 15:25:28 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-12-12 15:25:28 -0500 |
commit | 00279659b22cbd5db739d5351e83a9fc2a2ae408 (patch) | |
tree | 497f06f46820043cbdf1725652b8f0073223e24a /engines/made | |
parent | d932df79bed5aac97e17c0920a5e75cb5ce733ee (diff) | |
parent | d1628feb761acc9f4607f64de3eb620fea53bcc9 (diff) | |
download | scummvm-rg350-00279659b22cbd5db739d5351e83a9fc2a2ae408.tar.gz scummvm-rg350-00279659b22cbd5db739d5351e83a9fc2a2ae408.tar.bz2 scummvm-rg350-00279659b22cbd5db739d5351e83a9fc2a2ae408.zip |
Merge remote branch 'upstream/master' into pegasus
Conflicts:
video/qt_decoder.cpp
Diffstat (limited to 'engines/made')
-rw-r--r-- | engines/made/database.cpp | 14 | ||||
-rw-r--r-- | engines/made/database.h | 14 | ||||
-rw-r--r-- | engines/made/detection.cpp | 59 | ||||
-rw-r--r-- | engines/made/graphics.cpp | 7 | ||||
-rw-r--r-- | engines/made/graphics.h | 9 | ||||
-rw-r--r-- | engines/made/made.cpp | 34 | ||||
-rw-r--r-- | engines/made/made.h | 27 | ||||
-rw-r--r-- | engines/made/music.cpp | 7 | ||||
-rw-r--r-- | engines/made/music.h | 6 | ||||
-rw-r--r-- | engines/made/pmvplayer.cpp | 10 | ||||
-rw-r--r-- | engines/made/pmvplayer.h | 22 | ||||
-rw-r--r-- | engines/made/redreader.cpp | 3 | ||||
-rw-r--r-- | engines/made/redreader.h | 9 | ||||
-rw-r--r-- | engines/made/resource.cpp | 16 | ||||
-rw-r--r-- | engines/made/resource.h | 22 | ||||
-rw-r--r-- | engines/made/screen.cpp | 24 | ||||
-rw-r--r-- | engines/made/screen.h | 11 | ||||
-rw-r--r-- | engines/made/screenfx.cpp | 5 | ||||
-rw-r--r-- | engines/made/screenfx.h | 13 | ||||
-rw-r--r-- | engines/made/script.cpp | 8 | ||||
-rw-r--r-- | engines/made/script.h | 3 | ||||
-rw-r--r-- | engines/made/scriptfuncs.cpp | 22 | ||||
-rw-r--r-- | engines/made/scriptfuncs.h | 10 | ||||
-rw-r--r-- | engines/made/sound.cpp | 6 | ||||
-rw-r--r-- | engines/made/sound.h | 3 |
25 files changed, 179 insertions, 185 deletions
diff --git a/engines/made/database.cpp b/engines/made/database.cpp index 004f1462a6..454fe09a38 100644 --- a/engines/made/database.cpp +++ b/engines/made/database.cpp @@ -20,13 +20,15 @@ * */ -#include "common/system.h" +#include "made/database.h" +#include "made/redreader.h" + #include "common/endian.h" -#include "common/util.h" +#include "common/stream.h" +#include "common/debug.h" +#include "common/file.h" #include "common/savefile.h" -#include "common/textconsole.h" - -#include "made/database.h" +#include "common/system.h" namespace Made { @@ -494,6 +496,7 @@ int16 GameDatabaseV2::savegame(const char *filename, const char *description, in out->write(_gameState + 2, _gameStateSize - 2); for (uint i = 0; i < _objects.size(); i++) _objects[i]->save(*out); + out->finalize(); delete out; return result; } @@ -697,6 +700,7 @@ int16 GameDatabaseV3::savegame(const char *filename, const char *description, in out->writeUint16LE(version); out->write(desc, 64); out->write(_gameState, _gameStateSize); + out->finalize(); delete out; return result; } diff --git a/engines/made/database.h b/engines/made/database.h index 3bf69ca116..63f0557196 100644 --- a/engines/made/database.h +++ b/engines/made/database.h @@ -23,18 +23,18 @@ #ifndef MADE_DATABASE_H #define MADE_DATABASE_H -#include "common/array.h" #include "common/hashmap.h" -#include "common/util.h" -#include "common/file.h" -#include "common/stream.h" -#include "common/str.h" -#include "made/made.h" -#include "made/redreader.h" +namespace Common { +class SeekableReadStream; +class WriteStream; +class String; +} namespace Made { +class MadeEngine; + class Object { public: diff --git a/engines/made/detection.cpp b/engines/made/detection.cpp index fa08923e44..2591e92af3 100644 --- a/engines/made/detection.cpp +++ b/engines/made/detection.cpp @@ -20,13 +20,9 @@ * */ -#include "base/plugins.h" - -#include "engines/advancedDetector.h" -#include "common/file.h" - #include "made/made.h" +#include "engines/advancedDetector.h" namespace Made { @@ -69,9 +65,6 @@ static const PlainGameDescriptor madeGames[] = { namespace Made { -using Common::GUIO_NONE; -using Common::GUIO_NOSPEECH; - static const MadeGameDescription gameDescriptions[] = { { // NOTE: Return to Zork entries with *.dat are used to detect the game via rtzcd.dat, @@ -87,7 +80,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -105,7 +98,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -122,7 +115,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -139,7 +132,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -157,7 +150,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -174,7 +167,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -192,7 +185,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::DE_DEU, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -210,7 +203,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::DE_DEU, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -228,7 +221,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::IT_ITA, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -246,7 +239,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::IT_ITA, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -264,7 +257,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::FR_FRA, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -282,7 +275,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::FR_FRA, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -299,7 +292,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_RTZ, 0, @@ -316,7 +309,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_DEMO, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -334,7 +327,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::JA_JPN, Common::kPlatformPC, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -352,7 +345,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::JA_JPN, Common::kPlatformFMTowns, ADGF_CD, - GUIO_NONE + GUIO1(GUIO_NOASPECT) }, GID_RTZ, 0, @@ -370,7 +363,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::JA_JPN, Common::kPlatformPC98, ADGF_CD, - GUIO_NONE + GUIO0() }, GID_RTZ, 0, @@ -387,7 +380,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_CD, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_MANHOLE, 0, @@ -404,7 +397,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_MANHOLE, 0, @@ -421,7 +414,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, @@ -439,7 +432,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::DE_DEU, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, @@ -457,7 +450,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::FR_FRA, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, @@ -475,7 +468,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::ES_ESP, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_LGOP2, 0, @@ -492,7 +485,7 @@ static const MadeGameDescription gameDescriptions[] = { Common::EN_ANY, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NOSPEECH + GUIO1(GUIO_NOSPEECH) }, GID_RODNEY, 0, @@ -515,7 +508,7 @@ static MadeGameDescription g_fallbackDesc = { Common::UNK_LANG, Common::kPlatformPC, ADGF_NO_FLAGS, - GUIO_NONE + GUIO0() }, 0, 0, diff --git a/engines/made/graphics.cpp b/engines/made/graphics.cpp index 3ac73617c1..30496d8595 100644 --- a/engines/made/graphics.cpp +++ b/engines/made/graphics.cpp @@ -20,11 +20,14 @@ * */ -#include "common/debug.h" +#include "made/graphics.h" + #include "common/endian.h" #include "common/textconsole.h" +#include "common/debug.h" +#include "common/util.h" -#include "made/graphics.h" +#include "graphics/surface.h" namespace Made { diff --git a/engines/made/graphics.h b/engines/made/graphics.h index 691f1127c2..15704c7792 100644 --- a/engines/made/graphics.h +++ b/engines/made/graphics.h @@ -23,10 +23,11 @@ #ifndef MADE_GRAPHICS_H #define MADE_GRAPHICS_H -#include "common/util.h" -#include "common/file.h" -#include "common/stream.h" -#include "graphics/surface.h" +#include "common/scummsys.h" + +namespace Graphics { +struct Surface; +} namespace Made { diff --git a/engines/made/made.cpp b/engines/made/made.cpp index 75d39fa205..3843040961 100644 --- a/engines/made/made.cpp +++ b/engines/made/made.cpp @@ -20,31 +20,23 @@ * */ -#include "common/events.h" -#include "common/keyboard.h" -#include "common/config-manager.h" -#include "common/stream.h" - -#include "graphics/cursorman.h" - -#include "engines/util.h" - -#include "backends/audiocd/audiocd.h" - -#include "base/plugins.h" -#include "base/version.h" - -#include "audio/mixer.h" - #include "made/made.h" -#include "made/database.h" +#include "made/console.h" #include "made/pmvplayer.h" #include "made/resource.h" #include "made/screen.h" +#include "made/database.h" #include "made/script.h" -#include "made/sound.h" #include "made/music.h" -#include "made/redreader.h" + +#include "common/config-manager.h" +#include "common/events.h" +#include "common/system.h" +#include "common/error.h" + +#include "engines/util.h" + +#include "backends/audiocd/audiocd.h" namespace Made { @@ -143,6 +135,10 @@ int16 MadeEngine::getTicks() { return g_system->getMillis() * 30 / 1000; } +GUI::Debugger *MadeEngine::getDebugger() { + return _console; +} + int16 MadeEngine::getTimer(int16 timerNum) { if (timerNum > 0 && timerNum <= ARRAYSIZE(_timers) && _timers[timerNum - 1] != -1) return (getTicks() - _timers[timerNum - 1]); diff --git a/engines/made/made.h b/engines/made/made.h index e9673eed3c..c0b86bb0a8 100644 --- a/engines/made/made.h +++ b/engines/made/made.h @@ -20,30 +20,14 @@ * */ -#ifndef MADE_H -#define MADE_H - -#include "common/scummsys.h" -#include "common/endian.h" -#include "common/events.h" -#include "common/file.h" -#include "common/hash-str.h" -#include "common/keyboard.h" -#include "common/random.h" -#include "common/savefile.h" -#include "common/system.h" -#include "common/util.h" - -#include "graphics/surface.h" +#ifndef MADE_MADE_H +#define MADE_MADE_H -#include "audio/audiostream.h" -#include "audio/mixer.h" -#include "audio/decoders/voc.h" +#include "made/sound.h" #include "engines/engine.h" -#include "made/sound.h" -#include "made/console.h" +#include "common/random.h" /** * This is the namespace of the Made engine. @@ -82,6 +66,7 @@ class Screen; class ScriptInterpreter; class GameDatabase; class MusicPlayer; +class MadeConsole; class MadeEngine : public ::Engine { int _gameId; @@ -98,7 +83,7 @@ public: virtual bool hasFeature(EngineFeature f) const; virtual void syncSoundSettings(); - GUI::Debugger *getDebugger() { return _console; } + virtual GUI::Debugger *getDebugger(); int getGameId() { return _gameId; diff --git a/engines/made/music.cpp b/engines/made/music.cpp index 146d8d6371..04ac13eeda 100644 --- a/engines/made/music.cpp +++ b/engines/made/music.cpp @@ -24,11 +24,10 @@ // MIDI and digital music class -#include "audio/audiostream.h" -#include "audio/mididrv.h" -#include "audio/midiparser.h" - #include "made/music.h" +#include "made/resource.h" + +#include "audio/midiparser.h" namespace Made { diff --git a/engines/made/music.h b/engines/made/music.h index 1a5bae3040..3cfbd50ce7 100644 --- a/engines/made/music.h +++ b/engines/made/music.h @@ -26,13 +26,11 @@ #define MADE_MUSIC_H #include "audio/midiplayer.h" -#include "audio/midiparser.h" -#include "common/mutex.h" - -#include "made/resource.h" namespace Made { +class GenericResource; + enum MusicFlags { MUSIC_NORMAL = 0, MUSIC_LOOP = 1 diff --git a/engines/made/pmvplayer.cpp b/engines/made/pmvplayer.cpp index 386d618273..6c4749f44d 100644 --- a/engines/made/pmvplayer.cpp +++ b/engines/made/pmvplayer.cpp @@ -21,9 +21,19 @@ */ #include "made/pmvplayer.h" +#include "made/made.h" #include "made/screen.h" +#include "made/graphics.h" + +#include "common/file.h" +#include "common/debug.h" +#include "common/system.h" +#include "common/events.h" #include "audio/decoders/raw.h" +#include "audio/audiostream.h" + +#include "graphics/surface.h" namespace Made { diff --git a/engines/made/pmvplayer.h b/engines/made/pmvplayer.h index 58b6eafd2b..3821ca8de1 100644 --- a/engines/made/pmvplayer.h +++ b/engines/made/pmvplayer.h @@ -23,20 +23,24 @@ #ifndef MADE_PMVPLAYER_H #define MADE_PMVPLAYER_H -#include "common/system.h" -#include "common/events.h" -#include "common/file.h" -#include "common/endian.h" -#include "graphics/surface.h" #include "audio/mixer.h" -#include "audio/audiostream.h" -#include "made/graphics.h" -#include "made/sound.h" -#include "made/made.h" +namespace Common { +class File; +} + +namespace Graphics { +struct Surface; +} + +namespace Audio { +class QueuingAudioStream; +} namespace Made { +class MadeEngine; + class PmvPlayer { public: PmvPlayer(MadeEngine *vm, Audio::Mixer *mixer); diff --git a/engines/made/redreader.cpp b/engines/made/redreader.cpp index a18c719110..7e92cfe71b 100644 --- a/engines/made/redreader.cpp +++ b/engines/made/redreader.cpp @@ -21,8 +21,9 @@ */ #include "made/redreader.h" + +#include "common/file.h" #include "common/memstream.h" -#include "common/textconsole.h" namespace Made { diff --git a/engines/made/redreader.h b/engines/made/redreader.h index 84181fb722..3025d31ce1 100644 --- a/engines/made/redreader.h +++ b/engines/made/redreader.h @@ -23,9 +23,12 @@ #ifndef MADE_REDREADER_H #define MADE_REDREADER_H -#include "common/util.h" -#include "common/file.h" -#include "common/stream.h" +#include "common/scummsys.h" + +namespace Common { +class SeekableReadStream; +class File; +} namespace Made { diff --git a/engines/made/resource.cpp b/engines/made/resource.cpp index 246241561c..28fee8ce57 100644 --- a/engines/made/resource.cpp +++ b/engines/made/resource.cpp @@ -20,15 +20,17 @@ * */ -#include "common/debug.h" -#include "common/endian.h" -#include "common/memstream.h" -#include "audio/mixer.h" -#include "audio/decoders/raw.h" - #include "made/resource.h" #include "made/graphics.h" -#include "made/sound.h" + +#include "common/file.h" +#include "common/memstream.h" +#include "common/debug.h" + +#include "graphics/surface.h" + +#include "audio/decoders/raw.h" +#include "audio/audiostream.h" namespace Made { diff --git a/engines/made/resource.h b/engines/made/resource.h index 8ffebfef50..9e0a729c58 100644 --- a/engines/made/resource.h +++ b/engines/made/resource.h @@ -23,15 +23,23 @@ #ifndef MADE_RESOURCE_H #define MADE_RESOURCE_H -#include "common/util.h" -#include "common/file.h" -#include "common/stream.h" +#include "made/sound.h" + +#include "common/endian.h" +#include "common/array.h" #include "common/hashmap.h" -#include "common/textconsole.h" -#include "graphics/surface.h" -#include "audio/audiostream.h" -#include "made/sound.h" +namespace Common { +class File; +} + +namespace Audio { +class AudioStream; +} + +namespace Graphics { +struct Surface; +} namespace Made { diff --git a/engines/made/screen.cpp b/engines/made/screen.cpp index 7a8b4603dc..168902d577 100644 --- a/engines/made/screen.cpp +++ b/engines/made/screen.cpp @@ -20,12 +20,16 @@ * */ -#include "made/made.h" #include "made/screen.h" -#include "made/resource.h" +#include "made/made.h" +#include "made/screenfx.h" #include "made/database.h" +#include "common/system.h" + +#include "graphics/surface.h" #include "graphics/palette.h" +#include "graphics/cursorman.h" namespace Made { @@ -433,15 +437,15 @@ uint16 Screen::placeSprite(uint16 channelIndex, uint16 flexIndex, int16 x, int16 PictureResource *flex = _vm->_res->getPicture(flexIndex); if (flex) { - Graphics::Surface *surf = flex->getPicture(); + //Graphics::Surface *surf = flex->getPicture(); int16 state = 1; - int16 x1, y1, x2, y2; + /*int16 x1, y1, x2, y2; x1 = x; y1 = y; x2 = x + surf->w + 1; - y2 = y + surf->h + 1; + y2 = y + surf->h + 1;*/ if (_ground == 0) state |= 2; @@ -481,12 +485,12 @@ uint16 Screen::placeAnim(uint16 channelIndex, uint16 animIndex, int16 x, int16 y if (anim) { int16 state = 1; - int16 x1, y1, x2, y2; + /*int16 x1, y1, x2, y2; x1 = x; y1 = y; x2 = x + anim->getWidth(); - y2 = y + anim->getHeight(); + y2 = y + anim->getHeight();*/ if (anim->getFlags() == 1 || _ground == 0) state |= 2; @@ -539,7 +543,7 @@ uint16 Screen::placeText(uint16 channelIndex, uint16 textObjectIndex, int16 x, i Object *obj = _vm->_dat->getObject(textObjectIndex); const char *text = obj->getString(); - int16 x1, y1, x2, y2; + //int16 x1, y1, x2, y2; setFont(fontNum); @@ -553,10 +557,10 @@ uint16 Screen::placeText(uint16 channelIndex, uint16 textObjectIndex, int16 x, i y--; } - x1 = x; + /*x1 = x; y1 = y; x2 = x + textWidth; - y2 = y + textHeight; + y2 = y + textHeight;*/ if (textWidth > 0 && outlineColor != -1) { x++; diff --git a/engines/made/screen.h b/engines/made/screen.h index 8485c1c4d7..a61ecabdce 100644 --- a/engines/made/screen.h +++ b/engines/made/screen.h @@ -23,15 +23,9 @@ #ifndef MADE_SCREEN_H #define MADE_SCREEN_H -#include "common/endian.h" -#include "common/util.h" -#include "common/rect.h" - -#include "graphics/surface.h" -#include "graphics/cursorman.h" - #include "made/resource.h" -#include "made/screenfx.h" + +#include "common/rect.h" namespace Made { @@ -56,6 +50,7 @@ struct SpriteListItem { }; class MadeEngine; +class ScreenEffects; static const byte defaultMouseCursor[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, diff --git a/engines/made/screenfx.cpp b/engines/made/screenfx.cpp index 77220a0ff5..ff0d393885 100644 --- a/engines/made/screenfx.cpp +++ b/engines/made/screenfx.cpp @@ -20,9 +20,10 @@ * */ -#include "made/made.h" -#include "made/screen.h" #include "made/screenfx.h" +#include "made/screen.h" + +#include "graphics/surface.h" namespace Made { diff --git a/engines/made/screenfx.h b/engines/made/screenfx.h index 6011da7d6f..1fcdd5f0d4 100644 --- a/engines/made/screenfx.h +++ b/engines/made/screenfx.h @@ -23,17 +23,16 @@ #ifndef MADE_SCREENFX_H #define MADE_SCREENFX_H -#include "common/endian.h" -#include "common/util.h" -#include "common/rect.h" +#include "common/scummsys.h" -#include "graphics/surface.h" - -#include "made/made.h" -#include "made/screen.h" +namespace Graphics { +struct Surface; +} namespace Made { +class Screen; + struct BlendedPaletteStatus { bool _active; byte *_palette, *_newPalette; diff --git a/engines/made/script.cpp b/engines/made/script.cpp index 2776008828..7658d20eb5 100644 --- a/engines/made/script.cpp +++ b/engines/made/script.cpp @@ -20,15 +20,13 @@ * */ -#include "common/endian.h" -#include "common/util.h" - -#include "made/made.h" #include "made/script.h" -#include "made/database.h" #include "made/scriptfuncs.h" +#include "made/made.h" +#include "made/database.h" #include "made/screen.h" +#include "common/util.h" namespace Made { diff --git a/engines/made/script.h b/engines/made/script.h index 0a7cf8e974..f3db43485f 100644 --- a/engines/made/script.h +++ b/engines/made/script.h @@ -23,9 +23,6 @@ #ifndef MADE_SCRIPT_H #define MADE_SCRIPT_H -#include "common/util.h" -#include "common/file.h" -#include "common/stream.h" #include "common/textconsole.h" namespace Made { diff --git a/engines/made/scriptfuncs.cpp b/engines/made/scriptfuncs.cpp index aa172bbe74..de7b5b70f9 100644 --- a/engines/made/scriptfuncs.cpp +++ b/engines/made/scriptfuncs.cpp @@ -20,21 +20,19 @@ * */ -#include "common/util.h" - -#include "backends/audiocd/audiocd.h" -#include "graphics/cursorman.h" -#include "audio/softsynth/pcspk.h" - +#include "made/scriptfuncs.h" #include "made/made.h" -#include "made/resource.h" -#include "made/database.h" #include "made/screen.h" -#include "made/script.h" -#include "made/sound.h" -#include "made/pmvplayer.h" -#include "made/scriptfuncs.h" #include "made/music.h" +#include "made/database.h" +#include "made/pmvplayer.h" + +#include "audio/softsynth/pcspk.h" + +#include "backends/audiocd/audiocd.h" + +#include "graphics/cursorman.h" +#include "graphics/surface.h" namespace Made { diff --git a/engines/made/scriptfuncs.h b/engines/made/scriptfuncs.h index 481c131248..6b3301755d 100644 --- a/engines/made/scriptfuncs.h +++ b/engines/made/scriptfuncs.h @@ -23,13 +23,13 @@ #ifndef MADE_SCRIPTFUNCS_H #define MADE_SCRIPTFUNCS_H -#include "common/util.h" -#include "common/file.h" -#include "common/func.h" -#include "common/stream.h" - #include "made/resource.h" +#include "audio/mixer.h" + +#include "common/debug.h" +#include "common/system.h" + namespace Audio { class PCSpeaker; } diff --git a/engines/made/sound.cpp b/engines/made/sound.cpp index 54333eb3d4..f73c580560 100644 --- a/engines/made/sound.cpp +++ b/engines/made/sound.cpp @@ -20,12 +20,10 @@ * */ -#include "common/endian.h" -#include "common/list.h" -#include "common/util.h" - #include "made/sound.h" +#include "common/endian.h" + namespace Made { void ManholeEgaSoundDecompressor::decompress(byte *source, byte *dest, uint32 size) { diff --git a/engines/made/sound.h b/engines/made/sound.h index 8358d279cf..b8399fd90a 100644 --- a/engines/made/sound.h +++ b/engines/made/sound.h @@ -24,9 +24,6 @@ #define MADE_SOUND_H #include "common/array.h" -#include "common/util.h" -#include "common/file.h" -#include "common/stream.h" namespace Made { |