MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / LoadCurrentSaveGame

Function LoadCurrentSaveGame

Descent3/gamesave.cpp:708–717  ·  view source on GitHub ↗

loads savegame as specified from LoadGameDialog.

Source from the content-addressed store, hash-verified

706
707// loads savegame as specified from LoadGameDialog.
708bool LoadCurrentSaveGame() {
709 int retval = LoadGameState(LGS_Path);
710 if (retval != LGS_OK) {
711 Int3();
712 DoMessageBox(TXT_ERROR, TXT_LOADGAMEFAILED, MSGBOX_OK);
713 return false;
714 }
715 AddHUDMessage(TXT_GAMERESTORED);
716 return true;
717}
718
719//////////////////////////////////////////////////////////////////////////////
720

Callers 1

GameSequencerFunction · 0.85

Calls 3

LoadGameStateFunction · 0.85
DoMessageBoxFunction · 0.85
AddHUDMessageFunction · 0.85

Tested by

no test coverage detected