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

Function LoadDemoDialog

Descent3/demofile.cpp:1418–1434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1416}
1417
1418bool LoadDemoDialog() {
1419 // #ifdef DEMO
1420 // DoMessageBox(TXT_ERROR, TXT_WRONGVERSION, MSGBOX_OK);
1421 // return false;
1422 // #else
1423
1424 char file[_MAX_PATH * 2];
1425
1426 ddio_MakePath(file, Base_directory, "demo", NULL);
1427
1428 if (DoPathFileDialog(false, file, TXT_VIEWDEMO, "*.dem", PFDF_FILEMUSTEXIST)) {
1429 strcpy(Demo_fname, file);
1430 return true;
1431 }
1432 return false;
1433 // #endif
1434}
1435
1436// This function aborts the demo recording or playback, regardless of the state
1437void DemoAbort(bool deletefile) {

Callers 1

MainMenuFunction · 0.85

Calls 2

DoPathFileDialogFunction · 0.85
ddio_MakePathFunction · 0.50

Tested by

no test coverage detected