forked from Mirrorlandia_minetest/minetest
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"
|
} else { // Otherwise we will be using "minetest"
|
||||||
gamespec = findSubgame(g_settings->get("default_game"));
|
gamespec = findSubgame(g_settings->get("default_game"));
|
||||||
infostream << "Using default gameid [" << gamespec.id << "]" << std::endl;
|
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
|
} else { // World exists
|
||||||
std::string world_gameid = getWorldGameId(game_params->world_path, false);
|
std::string world_gameid = getWorldGameId(game_params->world_path, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user