aboutsummaryrefslogtreecommitdiff
path: root/v3
diff options
context:
space:
mode:
authorVincent Hamm2002-03-25 02:09:05 +0000
committerVincent Hamm2002-03-25 02:09:05 +0000
commit57cf1bfbee4c347dc7382062de9dec35e0925726 (patch)
treeb92e2bdfd0815fab54e9a7eb78a08c8f0c031e95 /v3
parent055953b329dabae504f073bc7e3f33048484639f (diff)
downloadscummvm-rg350-57cf1bfbee4c347dc7382062de9dec35e0925726.tar.gz
scummvm-rg350-57cf1bfbee4c347dc7382062de9dec35e0925726.tar.bz2
scummvm-rg350-57cf1bfbee4c347dc7382062de9dec35e0925726.zip
Rechanged the way the scumm class is choose (sorry, can't make up my mind). Implemented the different versions of loadCharset
svn-id: r3820
Diffstat (limited to 'v3')
-rw-r--r--v3/resource.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/v3/resource.cpp b/v3/resource.cpp
index 71407cc317..e6836876b9 100644
--- a/v3/resource.cpp
+++ b/v3/resource.cpp
@@ -124,3 +124,17 @@ void Scumm_v3::readIndexFile() {
openRoom(-1);
}
+
+void Scumm_v3::loadCharset(int no){
+ uint32 size;
+
+ checkRange(4 ,0 ,no , "Loading illegal charset %d");
+ openRoom(-1);
+
+ openRoom(98+no);
+
+ size = fileReadWordLE();
+
+ fileRead(_fileHandle, createResource(6, no, size), size);
+ openRoom(-1);
+}