| 567 | } |
| 568 | |
| 569 | void CScriptLevelInterface::UpdateCheckedOutWithScripts() { |
| 570 | CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_LIST_CHECKEDOUT); |
| 571 | if (!list) |
| 572 | return; |
| 573 | |
| 574 | list->ResetContent(); |
| 575 | |
| 576 | SetStatus("Updating checked out scripts"); |
| 577 | |
| 578 | char buffer[_MAX_PATH]; |
| 579 | int length; |
| 580 | |
| 581 | for (int i = 0; i < MAX_TRACKLOCKS; i++) { |
| 582 | if (GlobalTrackLocks[i].used && GlobalTrackLocks[i].pagetype == PAGETYPE_GAMEFILE) { |
| 583 | |
| 584 | length = strlen(GlobalTrackLocks[i].name); |
| 585 | if (!stricmp(&GlobalTrackLocks[i].name[length - 4], ".cpp")) { |
| 586 | strcpy(buffer, GlobalTrackLocks[i].name); |
| 587 | buffer[length - 4] = '\0'; |
| 588 | list->AddString(buffer); |
| 589 | } |
| 590 | } |
| 591 | } |
| 592 | |
| 593 | SetStatus("Ready"); |
| 594 | } |
| 595 | |
| 596 | void CScriptLevelInterface::UpdateScriptListWithLevels() { |
| 597 | CComboBox *combo = (CComboBox *)GetDlgItem(IDC_SELECTED_SCRIPT); |