| 1416 | } |
| 1417 | |
| 1418 | bool 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 |
| 1437 | void DemoAbort(bool deletefile) { |
no test coverage detected