aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorMax Horn2009-04-19 00:59:28 +0000
committerMax Horn2009-04-19 00:59:28 +0000
commit56a31019b7fad58454061e05ec8209d60714597f (patch)
tree66effc1644b90db682ed9499da576c61e9d1386e /engines/scumm
parent514c2be4a90f9d2fc2f197c5006f565d96252073 (diff)
downloadscummvm-rg350-56a31019b7fad58454061e05ec8209d60714597f.tar.gz
scummvm-rg350-56a31019b7fad58454061e05ec8209d60714597f.tar.bz2
scummvm-rg350-56a31019b7fad58454061e05ec8209d60714597f.zip
SCUMM: Added stubs for V3 & V4 opcode tables
svn-id: r40007
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/module.mk2
-rw-r--r--engines/scumm/script_v3.cpp36
-rw-r--r--engines/scumm/script_v4.cpp37
-rw-r--r--engines/scumm/scumm_v3.h2
-rw-r--r--engines/scumm/scumm_v4.h2
5 files changed, 79 insertions, 0 deletions
diff --git a/engines/scumm/module.mk b/engines/scumm/module.mk
index 8d6a5453df..240d3c290d 100644
--- a/engines/scumm/module.mk
+++ b/engines/scumm/module.mk
@@ -47,6 +47,8 @@ MODULE_OBJS := \
saveload.o \
script_v0.o \
script_v2.o \
+ script_v3.o \
+ script_v4.o \
script_v5.o \
script_v6.o \
script.o \
diff --git a/engines/scumm/script_v3.cpp b/engines/scumm/script_v3.cpp
new file mode 100644
index 0000000000..73f0002ee6
--- /dev/null
+++ b/engines/scumm/script_v3.cpp
@@ -0,0 +1,36 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "scumm/scumm_v3.h"
+
+namespace Scumm {
+
+#define OPCODE(i, x) _opcodes[i]._OPCODE(ScummEngine_v3, x)
+
+void ScummEngine_v3::setupOpcodes() {
+ ScummEngine_v4::setupOpcodes();
+}
+
+} // End of namespace Scumm
diff --git a/engines/scumm/script_v4.cpp b/engines/scumm/script_v4.cpp
new file mode 100644
index 0000000000..0111c91f8c
--- /dev/null
+++ b/engines/scumm/script_v4.cpp
@@ -0,0 +1,37 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
+#include "scumm/scumm_v4.h"
+#include "scumm/object.h"
+
+namespace Scumm {
+
+#define OPCODE(i, x) _opcodes[i]._OPCODE(ScummEngine_v4, x)
+
+void ScummEngine_v4::setupOpcodes() {
+ ScummEngine_v5::setupOpcodes();
+}
+
+} // End of namespace Scumm
diff --git a/engines/scumm/scumm_v3.h b/engines/scumm/scumm_v3.h
index 4529b90fe1..a9b8428a57 100644
--- a/engines/scumm/scumm_v3.h
+++ b/engines/scumm/scumm_v3.h
@@ -56,6 +56,8 @@ public:
virtual void resetScumm();
protected:
+ virtual void setupOpcodes();
+
virtual void readRoomsOffsets();
virtual void loadCharset(int no);
diff --git a/engines/scumm/scumm_v4.h b/engines/scumm/scumm_v4.h
index de72c05c1e..e25bfb31ab 100644
--- a/engines/scumm/scumm_v4.h
+++ b/engines/scumm/scumm_v4.h
@@ -40,6 +40,8 @@ public:
virtual void resetScumm();
protected:
+ virtual void setupOpcodes();
+
virtual void readResTypeList(int id);
virtual void readIndexFile();
virtual void loadCharset(int no);