| 1001 | } |
| 1002 | |
| 1003 | bool CScriptLevelInterface::AddNewScript(void) { |
| 1004 | char filename[255]; |
| 1005 | |
| 1006 | if (!Network_up) { |
| 1007 | OutrageMessageBox("You need to say Yes on the initial data update, in order to\nadd files\n"); |
| 1008 | return false; |
| 1009 | } |
| 1010 | |
| 1011 | // Get the filename of the representing image |
| 1012 | CString filter = "Descent III Script Source (*.cpp)|*.cpp|Descent III Compiled Script (*.dll)|*.dll||"; |
| 1013 | |
| 1014 | if (!OpenFileDialog(this, (LPCTSTR)filter, filename, Current_files_dir, sizeof(Current_files_dir))) |
| 1015 | return false; |
| 1016 | |
| 1017 | return AddNewGameFile(filename, "scripts"); |
| 1018 | } |
| 1019 | |
| 1020 | bool DeleteGamefile(char *tempbuffer) { |
| 1021 | int tl; |
nothing calls this directly
no test coverage detected