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

Function CopyScriptFile

editor/editorDoc.cpp:99–107  ·  view source on GitHub ↗

Function to copy a Dallas script file

Source from the content-addressed store, hash-verified

97
98// Function to copy a Dallas script file
99int CopyScriptFile(char *old_file, char *new_file) {
100 char old_fullpath[_MAX_PATH];
101 char new_fullpath[_MAX_PATH];
102
103 ddio_MakePath(old_fullpath, LocalScriptDir, old_file, NULL);
104 ddio_MakePath(new_fullpath, LocalScriptDir, new_file, NULL);
105
106 return (cf_CopyFile(new_fullpath, old_fullpath));
107}
108
109/////////////////////////////////////////////////////////////////////////////
110// CEditorDoc

Callers 1

OnSaveDocumentMethod · 0.85

Calls 2

cf_CopyFileFunction · 0.85
ddio_MakePathFunction · 0.50

Tested by

no test coverage detected