| 672 | |
| 673 | bool IsScriptOutofDate(char *name); |
| 674 | void 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 | } |
| 700 | bool IsScriptOutofSync(char *name); |
| 701 | void CScriptMassCompile::OnOosscripts() { |
| 702 | CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_LIST); |
nothing calls this directly
no test coverage detected