aboutsummaryrefslogtreecommitdiff
path: root/common/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/main.cpp')
-rw-r--r--common/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/main.cpp b/common/main.cpp
index eb898eab27..baaf9a5312 100644
--- a/common/main.cpp
+++ b/common/main.cpp
@@ -200,6 +200,11 @@ int main(int argc, char *argv[]) {
// 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();