[Scummvm-cvs-logs] scummvm master -> 5fad3d536245860d4e9446c21a2f5c7c1dca5b4e

clone2727 clone2727 at gmail.com
Thu Apr 7 16:02:02 CEST 2011


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
5fad3d5362 MOHAWK: Implement the quit notify LBCode command


Commit: 5fad3d536245860d4e9446c21a2f5c7c1dca5b4e
    https://github.com/scummvm/scummvm/commit/5fad3d536245860d4e9446c21a2f5c7c1dca5b4e
Author: Matthew Hoops (clone2727 at gmail.com)
Date: 2011-04-07T07:00:11-07:00

Commit Message:
MOHAWK: Implement the quit notify LBCode command

Changed paths:
    engines/mohawk/livingbooks_code.cpp



diff --git a/engines/mohawk/livingbooks_code.cpp b/engines/mohawk/livingbooks_code.cpp
index c0718d9..78345ab 100644
--- a/engines/mohawk/livingbooks_code.cpp
+++ b/engines/mohawk/livingbooks_code.cpp
@@ -785,6 +785,16 @@ void LBCode::runNotifyCommand() {
 		}
 		break;
 
+	case kLBNotifyQuit:
+		{
+		debugN("quit");
+		Common::Array<LBValue> params = readParams();
+		if (params.size() != 0)
+			error("incorrect number of parameters (%d) to quit", params.size());
+		_vm->addNotifyEvent(NotifyEvent(kLBNotifyQuit, 0));
+		}
+		break;
+
 	default:
 		error("unknown notify command %02x in code", commandType);
 	}






More information about the Scummvm-git-logs mailing list