aboutsummaryrefslogtreecommitdiff
path: root/v4
diff options
context:
space:
mode:
authorVincent Hamm2002-03-25 02:09:05 +0000
committerVincent Hamm2002-03-25 02:09:05 +0000
commit57cf1bfbee4c347dc7382062de9dec35e0925726 (patch)
treeb92e2bdfd0815fab54e9a7eb78a08c8f0c031e95 /v4
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 'v4')
-rw-r--r--v4/resource.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/v4/resource.cpp b/v4/resource.cpp
new file mode 100644
index 0000000000..3cf2d4ec00
--- /dev/null
+++ b/v4/resource.cpp
@@ -0,0 +1,16 @@
+#include"../stdafx.h"
+#include"../scumm.h"
+
+void Scumm_v4::loadCharset(int no) {
+ uint32 size;
+
+ checkRange(4 ,0 ,no , "Loading illegal charset %d");
+ openRoom(-1);
+
+ openRoom(900+no);
+
+ size = fileReadDwordLE();
+
+ fileRead(_fileHandle, createResource(6, no, size), size);
+ openRoom(-1);
+}