Skip to content

Commit

Permalink
Fixed: Do not attempt to load a game using ccmd "load" unless all the…
Browse files Browse the repository at this point in the history
… required

startup resources have been located. If resources are found missing; list them
and abort the load attempt.
  • Loading branch information
danij-deng committed Aug 2, 2011
1 parent dbde124 commit 0d9aa5c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/engine/portable/src/dd_main.c
Expand Up @@ -2343,6 +2343,14 @@ D_CMD(Load)
{ gameinfo_t* info = findGameInfoForIdentityKey(Str_Text(&searchPath));
if(NULL != info)
{
if(!allGameResourcesFound(info))
{
Con_Message("Failed to locating all required startup resources:\n");
printGameInfoResources(info, true, RF_STARTUP);
Con_Message("%s (%s) cannot be loaded.\n", Str_Text(GameInfo_Title(info)), Str_Text(GameInfo_IdentityKey(info)));
Str_Free(&searchPath);
return true;
}
if(!DD_ChangeGame(info))
{
Str_Free(&searchPath);
Expand Down

0 comments on commit 0d9aa5c

Please sign in to comment.