[Scummvm-cvs-logs] SF.net SVN: scummvm: [22164] scummvm/trunk/engines/saga

sev at users.sourceforge.net sev at users.sourceforge.net
Tue Apr 25 16:32:03 CEST 2006


Revision: 22164
Author:   sev
Date:     2006-04-25 16:31:11 -0700 (Tue, 25 Apr 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22164&view=rev

Log Message:
-----------
Show GUI message when game data is not found.

Modified Paths:
--------------
    scummvm/trunk/engines/saga/saga.cpp
    scummvm/trunk/engines/simon/simon.cpp
Modified: scummvm/trunk/engines/saga/saga.cpp
===================================================================
--- scummvm/trunk/engines/saga/saga.cpp	2006-04-25 23:07:59 UTC (rev 22163)
+++ scummvm/trunk/engines/saga/saga.cpp	2006-04-25 23:31:11 UTC (rev 22164)
@@ -53,6 +53,8 @@
 #include "saga/objectmap.h"
 #include "saga/resnames.h"
 
+#include "gui/message.h"
+
 namespace Saga {
 
 #define MAX_TIME_DELTA 100
@@ -158,10 +160,15 @@
 
 	_resource = new Resource(this);
 
-	// Process command line
-
 	// Detect game and open resource files
 	if (!initGame()) {
+		_system->beginGFXTransaction();
+			initCommonGFX(false);
+			_system->initSize(320, 200, 2);
+		_system->endGFXTransaction();
+		GUI::MessageDialog dialog("No valid games were found in the specified directory.");
+		dialog.runModal();
+
 		return FAILURE;
 	}
 

Modified: scummvm/trunk/engines/simon/simon.cpp
===================================================================
--- scummvm/trunk/engines/simon/simon.cpp	2006-04-25 23:07:59 UTC (rev 22163)
+++ scummvm/trunk/engines/simon/simon.cpp	2006-04-25 23:31:11 UTC (rev 22164)
@@ -404,6 +404,13 @@
 
 	// Detect game
 	if (!initGame()) {
+		_system->beginGFXTransaction();
+			initCommonGFX(false);
+			_system->initSize(320, 200, 2);
+		_system->endGFXTransaction();
+		GUI::MessageDialog dialog("No valid games were found in the specified directory.");
+		dialog.runModal();
+
 		return -1;
 	}
 


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