[Scummvm-cvs-logs] CVS: scummvm/wince pocketpc.cpp,1.30,1.31

Max Horn fingolfin at users.sourceforge.net
Sun Aug 18 11:40:04 CEST 2002


Update of /cvsroot/scummvm/scummvm/wince
In directory usw-pr-cvs1:/tmp/cvs-serv464/wince

Modified Files:
	pocketpc.cpp 
Log Message:
some more cleanup

Index: pocketpc.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/wince/pocketpc.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- pocketpc.cpp	18 Aug 2002 17:48:18 -0000	1.30
+++ pocketpc.cpp	18 Aug 2002 18:39:42 -0000	1.31
@@ -439,18 +439,9 @@
 		return (-1);
 
 	OSystem *system = detector.createSystem();
-	Engine *engine;
 	
-	/* Simon the Sorcerer? */
-	if (detector._gameId >= GID_SIMON_FIRST && detector._gameId <= GID_SIMON_LAST) {
-		/* Simon the Sorcerer. Completely different initialization */
-		detector._gameId -= GID_SIMON_FIRST;
-		engine = SimonState::createFromDetector(&detector, system);
-
-	} else {
-		engine = Scumm::createFromDetector(&detector, system);
-
-	}
+	// Create the game engine
+	Engine *engine = Engine::createFromDetector(&detector, system);
 
 	keypad_init();
 	load_key_mapping();
@@ -459,7 +450,7 @@
 	if (detector._gameId == GID_SAMNMAX || detector._gameId == GID_FT || detector._gameId == GID_DIG)
 		hide_cursor = FALSE;
 
-
+	// Run the game engine
 	engine->go();
 	
 	return 0;





More information about the Scummvm-git-logs mailing list