[Scummvm-cvs-logs] SF.net SVN: scummvm: [32985] scummvm/branches/gsoc2008-rtl/engines/cine/prc .cpp

cpage88 at users.sourceforge.net cpage88 at users.sourceforge.net
Thu Jul 10 07:25:52 CEST 2008


Revision: 32985
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32985&view=rev
Author:   cpage88
Date:     2008-07-09 22:25:52 -0700 (Wed, 09 Jul 2008)

Log Message:
-----------
Changed CINE to RTL when copy protection fails instead of Quit

Modified Paths:
--------------
    scummvm/branches/gsoc2008-rtl/engines/cine/prc.cpp

Modified: scummvm/branches/gsoc2008-rtl/engines/cine/prc.cpp
===================================================================
--- scummvm/branches/gsoc2008-rtl/engines/cine/prc.cpp	2008-07-10 05:15:19 UTC (rev 32984)
+++ scummvm/branches/gsoc2008-rtl/engines/cine/prc.cpp	2008-07-10 05:25:52 UTC (rev 32985)
@@ -25,6 +25,7 @@
 
 
 #include "common/endian.h"
+#include "common/events.h"
 
 #include "cine/cine.h"
 #include "cine/various.h"
@@ -53,7 +54,9 @@
 
 	// This is copy protection. Used to hang the machine
 	if (!scumm_stricmp(pPrcName, "L201.ANI")) {
-		g_cine->quitGame();
+		Common::Event event;
+		event.type = Common::EVENT_RTL;
+		g_system->getEventManager()->pushEvent(event);
 		return;
 	}
 


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