mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 23:58:48 -05: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