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

Function MenuLoadLevel

Descent3/menu.cpp:1393–1402  ·  view source on GitHub ↗

Loads a level and starts the game

Source from the content-addressed store, hash-verified

1391#ifdef _DEBUG
1392// Loads a level and starts the game
1393bool MenuLoadLevel(void) {
1394 char buffer[_MAX_PATH];
1395 buffer[0] = '\0';
1396 if (DoPathFileDialog(false, buffer, "Load Level", "*.d3l", PFDF_FILEMUSTEXIST)) {
1397 SimpleStartLevel(buffer);
1398 SetFunctionMode(GAME_MODE);
1399 return true;
1400 }
1401 return false;
1402}
1403#endif

Callers 1

MainMenuFunction · 0.85

Calls 3

DoPathFileDialogFunction · 0.85
SimpleStartLevelFunction · 0.85
SetFunctionModeFunction · 0.85

Tested by

no test coverage detected