aboutsummaryrefslogtreecommitdiff
path: root/saga
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-11-25 07:20:50 +0000
committerTorbjörn Andersson2004-11-25 07:20:50 +0000
commit85e362707537ab04eef7aa4a52b876982b77438c (patch)
tree9003254ad8701c7ebf7ecaccad8cc73fbfed2dd2 /saga
parent03c32f05b012c4a26d607d900cb17a4d55bdaaf9 (diff)
downloadscummvm-rg350-85e362707537ab04eef7aa4a52b876982b77438c.tar.gz
scummvm-rg350-85e362707537ab04eef7aa4a52b876982b77438c.tar.bz2
scummvm-rg350-85e362707537ab04eef7aa4a52b876982b77438c.zip
Tiny, almost unnoticeable, step towards IHNM script loading. We'll need to
figure out the correct values for IHNM_SCRIPT_LUT and _scriptLUTEntryLen. svn-id: r15883
Diffstat (limited to 'saga')
-rw-r--r--saga/script.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/saga/script.cpp b/saga/script.cpp
index feef94dc9b..47c2709f67 100644
--- a/saga/script.cpp
+++ b/saga/script.cpp
@@ -50,6 +50,7 @@ int Script::reg() {
// Initializes the scripting module.
// Loads script resource look-up table, initializes script data system
Script::Script() {
+ GAME_RESOURCEDESC gr_desc;
RSCFILE_CONTEXT *s_lut_ctxt;
byte *rsc_ptr;
size_t rsc_len;
@@ -67,6 +68,8 @@ Script::Script() {
_abortEnabled = true;
_skipSpeeches = false;
memset(_dataBuf, 0, sizeof(_dataBuf));
+
+ GAME_GetResourceInfo(&gr_desc);
debug(0, "Initializing scripting subsystem");
// Load script resource file context
@@ -81,7 +84,8 @@ Script::Script() {
error("Couldn't get resource file context");
}
- result = RSC_LoadResource(s_lut_ctxt, ITE_SCRIPT_LUT, &rsc_ptr, &rsc_len);
+ debug(0, "Loading script LUT from resource %u.", gr_desc.script_lut_rn);
+ result = RSC_LoadResource(s_lut_ctxt, gr_desc.script_lut_rn, &rsc_ptr, &rsc_len);
if (result != SUCCESS) {
error("Error: Couldn't load script resource look-up table");
}