[Scummvm-cvs-logs] CVS: scummvm/common main.cpp,1.21,1.22
Jonathan Gray
khalek at users.sourceforge.net
Thu Mar 6 16:53:15 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon debug.cpp,1.13,1.14 debug.h,1.6,1.7 intern.h,1.14,1.15 items.cpp,1.52,1.53 midi.cpp,1.22,1.23 midi.h,1.8,1.9 res.cpp,1.18,1.19 simon.cpp,1.159,1.160 simon.h,1.49,1.50 sound.cpp,1.13,1.14 sound.h,1.4,1.5 verb.cpp,1.15,1.16 vga.cpp,1.34,1.35 vga.h,1.2,1.3
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.89,1.90
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv31364
Modified Files:
main.cpp
Log Message:
exit cleanly if invalid target is specified
Index: main.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/main.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- main.cpp 6 Mar 2003 21:45:24 -0000 1.21
+++ main.cpp 7 Mar 2003 00:52:45 -0000 1.22
@@ -200,6 +200,11 @@
// Create the game engine
Engine *engine = Engine::createFromDetector(&detector, system);
+ // print a message if gameid is invalid
+ if (engine == NULL)
+ error("%s is an invalid target. Use the -z parameter to list targets\n",
+ detector._gameFileName.c_str());
+
// Run the game engine
engine->go();
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon debug.cpp,1.13,1.14 debug.h,1.6,1.7 intern.h,1.14,1.15 items.cpp,1.52,1.53 midi.cpp,1.22,1.23 midi.h,1.8,1.9 res.cpp,1.18,1.19 simon.cpp,1.159,1.160 simon.h,1.49,1.50 sound.cpp,1.13,1.14 sound.h,1.4,1.5 verb.cpp,1.15,1.16 vga.cpp,1.34,1.35 vga.h,1.2,1.3
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.89,1.90
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list