======================File Checkin/Checkout Functions======================
| 984 | |
| 985 | // ======================File Checkin/Checkout Functions====================== |
| 986 | bool CScriptLevelInterface::AddNewLevel(void) { |
| 987 | char filename[255]; |
| 988 | |
| 989 | if (!Network_up) { |
| 990 | OutrageMessageBox("You need to say Yes on the initial data update, in order to\nadd files\n"); |
| 991 | return false; |
| 992 | } |
| 993 | |
| 994 | // Get the filename of the representing image |
| 995 | CString filter = "Descent III Levels (*.d3l)|*.d3l||"; |
| 996 | |
| 997 | if (!OpenFileDialog(this, (LPCTSTR)filter, filename, Current_files_dir, sizeof(Current_files_dir))) |
| 998 | return false; |
| 999 | |
| 1000 | return AddNewGameFile(filename, "levels"); |
| 1001 | } |
| 1002 | |
| 1003 | bool CScriptLevelInterface::AddNewScript(void) { |
| 1004 | char filename[255]; |
nothing calls this directly
no test coverage detected