SCI: Reduce header interdependencies a bit

svn-id: r47666
This commit is contained in:
Max Horn 2010-01-29 11:05:06 +00:00
parent 4ffec28103
commit b124a0c1cd
7 changed files with 10 additions and 2 deletions

View File

@ -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;

View File

@ -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 {

View File

@ -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 {

View File

@ -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 {

View File

@ -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"

View File

@ -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 {

View File

@ -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"