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

Method OnOodscripts

editor/ScriptMassCompile.cpp:674–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672
673bool IsScriptOutofDate(char *name);
674void CScriptMassCompile::OnOodscripts() {
675 CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_LIST);
676 if (!list)
677 return;
678
679 char old_dir[_MAX_PATH];
680 ddio_GetWorkingDir(old_dir, _MAX_PATH);
681 ddio_SetWorkingDir(LocalScriptDir);
682
683 char filename[_MAX_PATH];
684 int count = list->GetCount();
685 for (int i = 0; i < count; i++) {
686 list->GetText(i, filename);
687 strcat(filename, ".cpp");
688
689 if (IsScriptOutofDate(filename)) {
690 list->SetCheck(i, 1);
691 list->SetSel(i, TRUE);
692 } else {
693 list->SetCheck(i, 0);
694 list->SetSel(i, FALSE);
695 }
696 }
697
698 ddio_SetWorkingDir(old_dir);
699}
700bool IsScriptOutofSync(char *name);
701void CScriptMassCompile::OnOosscripts() {
702 CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_LIST);

Callers

nothing calls this directly

Calls 5

IsScriptOutofDateFunction · 0.85
SetCheckMethod · 0.80
ddio_GetWorkingDirFunction · 0.50
ddio_SetWorkingDirFunction · 0.50
GetTextMethod · 0.45

Tested by

no test coverage detected