[Scummvm-cvs-logs] SF.net SVN: scummvm:[39741] scummvm/trunk/engines/parallaction

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Sun Mar 29 16:03:11 CEST 2009


Revision: 39741
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39741&view=rev
Author:   peres001
Date:     2009-03-29 14:03:11 +0000 (Sun, 29 Mar 2009)

Log Message:
-----------
Added declaration for Amiga BRA callables.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/callables_br.cpp
    scummvm/trunk/engines/parallaction/parallaction.h
    scummvm/trunk/engines/parallaction/staticres.cpp

Modified: scummvm/trunk/engines/parallaction/callables_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/callables_br.cpp	2009-03-29 13:56:16 UTC (rev 39740)
+++ scummvm/trunk/engines/parallaction/callables_br.cpp	2009-03-29 14:03:11 UTC (rev 39741)
@@ -27,6 +27,9 @@
 
 namespace Parallaction {
 
+void Parallaction_br::_c_null(void*) {
+	// do nothing :)
+}
 
 void Parallaction_br::_c_blufade(void*) {
 	warning("Parallaction_br::_c_blufade() not yet implemented");

Modified: scummvm/trunk/engines/parallaction/parallaction.h
===================================================================
--- scummvm/trunk/engines/parallaction/parallaction.h	2009-03-29 13:56:16 UTC (rev 39740)
+++ scummvm/trunk/engines/parallaction/parallaction.h	2009-03-29 14:03:11 UTC (rev 39741)
@@ -554,12 +554,14 @@
 	typedef void (Parallaction_br::*Callable)(void*);
 	const Callable *_callables;
 	static const Callable _dosCallables[6];
+	static const Callable _amigaCallables[6];
 
 	Common::String		_followerName;
 	AnimationPtr		_follower;
 	PathWalker_BR		*_walker;
 
 	// dos callables
+	void _c_null(void*);
 	void _c_blufade(void*);
 	void _c_resetpalette(void*);
 	void _c_ferrcycle(void*);

Modified: scummvm/trunk/engines/parallaction/staticres.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/staticres.cpp	2009-03-29 13:56:16 UTC (rev 39740)
+++ scummvm/trunk/engines/parallaction/staticres.cpp	2009-03-29 14:03:11 UTC (rev 39741)
@@ -384,6 +384,15 @@
 	CALLABLE_BR(_c_password)
 };
 
+const Parallaction_br::Callable Parallaction_br::_amigaCallables[] = {
+	CALLABLE_BR(_c_blufade),
+	CALLABLE_BR(_c_resetpalette),
+	CALLABLE_BR(_c_null),
+	CALLABLE_BR(_c_null),
+	CALLABLE_BR(_c_null),
+	CALLABLE_BR(_c_null)
+};
+
 void Parallaction_ns::initResources() {
 
 	_callableNames = new Table(ARRAYSIZE(_callableNamesRes_ns), _callableNamesRes_ns);
@@ -409,6 +418,8 @@
 
 	if (getPlatform() == Common::kPlatformPC) {
 		_callables = _dosCallables;
+	} else {
+		_callables = _amigaCallables;
 	}
 
 }


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