summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-15 18:15:12 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-15 18:15:12 +0200
commit60add387e3f71f739b76268c74e8ded3f3b4584d (patch)
tree5d1a5854ff2adb11c0cf0b830cad83eaa5d84077 /src/main.cpp
parentca0fd4173cb18dd54219a1e8f05ec412e4d707ec (diff)
downloadminetest-60add387e3f71f739b76268c74e8ded3f3b4584d.tar.gz
minetest-60add387e3f71f739b76268c74e8ded3f3b4584d.tar.bz2
minetest-60add387e3f71f739b76268c74e8ded3f3b4584d.zip
Create main menu tab "Settings" for client settings
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3e4686134..d08f88417 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1043,6 +1043,11 @@ int main(int argc, char *argv[])
}
}
+ if(world_path == ""){
+ errorstream<<"No world path specified or found."<<std::endl;
+ return 1;
+ }
+
// Gamespec
std::string world_gameid = getWorldGameId(world_path, is_legacy_world);
SubgameSpec gamespec = findSubgame(world_gameid);