Proper fix for kernel name loading (regression from commit #49537)

svn-id: r49544
This commit is contained in:
Filippos Karapetis 2010-06-09 15:28:14 +00:00
parent 3c9ab81a07
commit a542ce174b
3 changed files with 2 additions and 2 deletions

View file

@ -394,6 +394,7 @@ SciKernelFunction kfunct_mappers[] = {
Kernel::Kernel(ResourceManager *resMan, SegManager *segMan) : _resMan(resMan), _segMan(segMan) {
loadSelectorNames();
mapSelectors(); // Map a few special selectors for later use
loadKernelNames(); // must be called after the selectors are set
}
Kernel::~Kernel() {

View file

@ -207,6 +207,7 @@ public:
*/
Common::String lookupText(reg_t address, int index);
private:
/**
* Loads the kernel function names.
*
@ -217,7 +218,6 @@ public:
*/
void loadKernelNames();
private:
/**
* Sets the default kernel function names, based on the SCI version used
*/

View file

@ -217,7 +217,6 @@ Common::Error SciEngine::run() {
}
script_adjust_opcode_formats(_gamestate);
_kernel->loadKernelNames();
SciVersion soundVersion = _features->detectDoSoundType();