From b124a0c1cddf2b3de9b8357752b9a44b14c1f5c1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 29 Jan 2010 11:05:06 +0000 Subject: SCI: Reduce header interdependencies a bit svn-id: r47666 --- engines/sci/engine/savegame.cpp | 2 ++ engines/sci/engine/script.cpp | 3 +++ engines/sci/engine/scriptdebug.cpp | 2 ++ engines/sci/engine/selector.h | 1 + engines/sci/engine/state.h | 2 -- engines/sci/engine/vm.cpp | 1 + engines/sci/sci.cpp | 1 + 7 files changed, 10 insertions(+), 2 deletions(-) diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 52f96ba9a2..5764a056e0 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -36,6 +36,7 @@ #include "sci/engine/message.h" #include "sci/engine/savegame.h" #include "sci/engine/vm_types.h" +#include "sci/engine/script.h" // for SCI_OBJ_EXPORTS and SCI_OBJ_SYNONYMS #include "sci/graphics/gui.h" #include "sci/sound/audio.h" #ifdef USE_OLD_MUSIC_FUNCTIONS @@ -702,6 +703,7 @@ static void load_script(EngineState *s, Script *scr) { } } +// TODO: Move thie function to a more appropriate place, such as vm.cpp or script.cpp void SegManager::reconstructScripts(EngineState *s) { uint i; SegmentObj *mobj; diff --git a/engines/sci/engine/script.cpp b/engines/sci/engine/script.cpp index a838758d1a..1c898da4e5 100644 --- a/engines/sci/engine/script.cpp +++ b/engines/sci/engine/script.cpp @@ -26,6 +26,9 @@ #include "sci/sci.h" #include "sci/resource.h" #include "sci/engine/state.h" +#include "sci/engine/kernel.h" +#include "sci/engine/script.h" + #include "common/util.h" namespace Sci { diff --git a/engines/sci/engine/scriptdebug.cpp b/engines/sci/engine/scriptdebug.cpp index f950673dc3..b54e9cd35a 100644 --- a/engines/sci/engine/scriptdebug.cpp +++ b/engines/sci/engine/scriptdebug.cpp @@ -29,6 +29,8 @@ #include "sci/console.h" #include "sci/debug.h" #include "sci/engine/state.h" +#include "sci/engine/kernel.h" +#include "sci/engine/script.h" namespace Sci { diff --git a/engines/sci/engine/selector.h b/engines/sci/engine/selector.h index be777c0e72..0cc0935377 100644 --- a/engines/sci/engine/selector.h +++ b/engines/sci/engine/selector.h @@ -30,6 +30,7 @@ #include "sci/engine/vm_types.h" // for reg_t #include "sci/engine/vm.h" +#include "sci/engine/kernel.h" // for Kernel::_selectorCache namespace Sci { diff --git a/engines/sci/engine/state.h b/engines/sci/engine/state.h index 98296fce91..1882200b90 100644 --- a/engines/sci/engine/state.h +++ b/engines/sci/engine/state.h @@ -37,8 +37,6 @@ namespace Common { #include "sci/sci.h" #include "sci/resource.h" -#include "sci/engine/kernel.h" // for kfunct_sig_pair_t -#include "sci/engine/script.h" #include "sci/engine/seg_manager.h" #include "sci/parser/vocabulary.h" diff --git a/engines/sci/engine/vm.cpp b/engines/sci/engine/vm.cpp index 65577e72e3..9e61508492 100644 --- a/engines/sci/engine/vm.cpp +++ b/engines/sci/engine/vm.cpp @@ -35,6 +35,7 @@ #include "sci/engine/kernel.h" #include "sci/engine/kernel_types.h" #include "sci/engine/seg_manager.h" +#include "sci/engine/script.h" #include "sci/engine/gc.h" namespace Sci { diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp index 9db3b6a061..1994fd2b6e 100644 --- a/engines/sci/sci.cpp +++ b/engines/sci/sci.cpp @@ -35,6 +35,7 @@ #include "sci/engine/state.h" #include "sci/engine/kernel.h" +#include "sci/engine/script.h" // for script_adjust_opcode_formats & script_free_breakpoints #include "sci/sound/audio.h" #include "sci/sound/soundcmd.h" -- cgit v1.2.3