[Scummvm-cvs-logs] SF.net SVN: scummvm:[40007] scummvm/trunk/engines/scumm
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sun Apr 19 02:59:28 CEST 2009
Revision: 40007
http://scummvm.svn.sourceforge.net/scummvm/?rev=40007&view=rev
Author: fingolfin
Date: 2009-04-19 00:59:28 +0000 (Sun, 19 Apr 2009)
Log Message:
-----------
SCUMM: Added stubs for V3 & V4 opcode tables
Modified Paths:
--------------
scummvm/trunk/engines/scumm/module.mk
scummvm/trunk/engines/scumm/scumm_v3.h
scummvm/trunk/engines/scumm/scumm_v4.h
Added Paths:
-----------
scummvm/trunk/engines/scumm/script_v3.cpp
scummvm/trunk/engines/scumm/script_v4.cpp
Modified: scummvm/trunk/engines/scumm/module.mk
===================================================================
--- scummvm/trunk/engines/scumm/module.mk 2009-04-18 23:34:28 UTC (rev 40006)
+++ scummvm/trunk/engines/scumm/module.mk 2009-04-19 00:59:28 UTC (rev 40007)
@@ -47,6 +47,8 @@
saveload.o \
script_v0.o \
script_v2.o \
+ script_v3.o \
+ script_v4.o \
script_v5.o \
script_v6.o \
script.o \
Copied: scummvm/trunk/engines/scumm/script_v3.cpp (from rev 40006, scummvm/trunk/engines/scumm/scumm_v4.h)
===================================================================
--- scummvm/trunk/engines/scumm/script_v3.cpp (rev 0)
+++ scummvm/trunk/engines/scumm/script_v3.cpp 2009-04-19 00:59:28 UTC (rev 40007)
@@ -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
Copied: scummvm/trunk/engines/scumm/script_v4.cpp (from rev 40006, scummvm/trunk/engines/scumm/scumm_v4.h)
===================================================================
--- scummvm/trunk/engines/scumm/script_v4.cpp (rev 0)
+++ scummvm/trunk/engines/scumm/script_v4.cpp 2009-04-19 00:59:28 UTC (rev 40007)
@@ -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
Modified: scummvm/trunk/engines/scumm/scumm_v3.h
===================================================================
--- scummvm/trunk/engines/scumm/scumm_v3.h 2009-04-18 23:34:28 UTC (rev 40006)
+++ scummvm/trunk/engines/scumm/scumm_v3.h 2009-04-19 00:59:28 UTC (rev 40007)
@@ -56,6 +56,8 @@
virtual void resetScumm();
protected:
+ virtual void setupOpcodes();
+
virtual void readRoomsOffsets();
virtual void loadCharset(int no);
Modified: scummvm/trunk/engines/scumm/scumm_v4.h
===================================================================
--- scummvm/trunk/engines/scumm/scumm_v4.h 2009-04-18 23:34:28 UTC (rev 40006)
+++ scummvm/trunk/engines/scumm/scumm_v4.h 2009-04-19 00:59:28 UTC (rev 40007)
@@ -40,6 +40,8 @@
virtual void resetScumm();
protected:
+ virtual void setupOpcodes();
+
virtual void readResTypeList(int id);
virtual void readIndexFile();
virtual void loadCharset(int no);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list