return true if it's a level script
| 458 | |
| 459 | // return true if it's a level script |
| 460 | bool 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 | |
| 478 | void masscompilercallback(char *str) { |
| 479 | MassScriptEditContent += str; |
nothing calls this directly
no test coverage detected