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

Function SaveScriptCode

editor/ObjCScript.cpp:292–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292void SaveScriptCode(const char *filename, tD3XProgram *program) {
293 CFILE *file;
294 char file_path[256];
295
296 // write out default script program
297 ddio_MakePath(file_path, LocalLevelsDir, filename, NULL);
298 file = cfopen(file_path, "wb");
299 // D3XSaveProgram(file, program); // LGT: function undefined
300 mprintf(0, "Saving %s.\n", filename);
301 cfclose(file);
302}
303
304//////////////////////////////////////////////////////////////////////////////
305// LIST FUNCTIONS

Callers 1

OnEditScriptMethod · 0.85

Calls 3

cfopenFunction · 0.85
cfcloseFunction · 0.85
ddio_MakePathFunction · 0.50

Tested by

no test coverage detected