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

Method Step2

editor/ScriptMassCompile.cpp:460–476  ·  view source on GitHub ↗

return true if it's a level script

Source from the content-addressed store, hash-verified

458
459// return true if it's a level script
460bool CScriptMassCompile::Step2(char *filename) {
461 char source_filename[_MAX_PATH];
462 strcpy(source_filename, filename);
463 strcat(source_filename, ".cpp");
464
465 if (DetermineScriptType(source_filename) == ST_LEVEL) {
466 writeline("Step 2: Determined to be a level script");
467 SetStepText(2, "Level Script");
468 return true;
469 } else {
470 writeline("Step 2: Determined to be a game script");
471 SetStepText(2, "Game Script");
472 return false;
473 }
474
475 return false;
476}
477
478void masscompilercallback(char *str) {
479 MassScriptEditContent += str;

Callers

nothing calls this directly

Calls 2

DetermineScriptTypeFunction · 0.85
writelineFunction · 0.85

Tested by

no test coverage detected