mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Provide more info if a subgame is not valid/found
This commit is contained in:
parent
ce4ed65a39
commit
784a452ed5
@ -1395,6 +1395,12 @@ static bool determine_subgame(GameParams *game_params)
|
||||
} else { // Otherwise we will be using "minetest"
|
||||
gamespec = findSubgame(g_settings->get("default_game"));
|
||||
infostream << "Using default gameid [" << gamespec.id << "]" << std::endl;
|
||||
if (!gamespec.isValid()) {
|
||||
errorstream << "Subgame specified in default_game ["
|
||||
<< g_settings->get("default_game")
|
||||
<< "] is invalid." << std::endl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} else { // World exists
|
||||
std::string world_gameid = getWorldGameId(game_params->world_path, false);
|
||||
|
Loading…
Reference in New Issue
Block a user