Skip to content

Commit

Permalink
Refactor: Moved App_ChangeGame() to DoomsdayApp
Browse files Browse the repository at this point in the history
DoomsdayApp::changeGame() is now responsible for directing the
game changing operation. Also moved a bunch of file loading routines
that handle the loading of a game's files when the game is loaded.
  • Loading branch information
skyjake committed Jan 23, 2016
1 parent 791cb87 commit ae3f265
Show file tree
Hide file tree
Showing 13 changed files with 527 additions and 439 deletions.
10 changes: 1 addition & 9 deletions doomsday/apps/client/include/dd_main.h
Expand Up @@ -50,11 +50,6 @@ void DD_FinishInitializationAfterWindowReady();

void DD_ConsoleRegister();

/**
* Returns @c true if shutdown is in progress.
*/
bool DD_IsShuttingDown();

/**
* Print an error message and quit.
*/
Expand Down Expand Up @@ -89,10 +84,7 @@ void DD_UpdateEngineState();
// Game modules -------------------------------------------------------------------
//

/**
* Switch to/activate the specified game.
*/
bool App_ChangeGame(Game &game, bool allowReload = false);
int DD_ActivateGameWorker(void *context);

/**
* Returns the application's global Games (collection).
Expand Down
2 changes: 2 additions & 0 deletions doomsday/apps/client/src/clientapp.cpp
Expand Up @@ -787,6 +787,8 @@ void ClientApp::unloadGame(Game const &upcomingGame)

R_InitViewWindow();
R_InitSvgs();

Map::initDummies();
}

void ClientApp::makeGameCurrent(Game &newGame)
Expand Down

0 comments on commit ae3f265

Please sign in to comment.