| 540 | } |
| 541 | |
| 542 | void CScriptLevelInterface::UpdateCheckedOutWithLevels() { |
| 543 | CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_LIST_CHECKEDOUT); |
| 544 | if (!list) |
| 545 | return; |
| 546 | |
| 547 | list->ResetContent(); |
| 548 | |
| 549 | SetStatus("Updating checked out levels"); |
| 550 | |
| 551 | char buffer[_MAX_PATH]; |
| 552 | int length; |
| 553 | |
| 554 | for (int i = 0; i < MAX_TRACKLOCKS; i++) { |
| 555 | if (GlobalTrackLocks[i].used && GlobalTrackLocks[i].pagetype == PAGETYPE_GAMEFILE) { |
| 556 | |
| 557 | length = strlen(GlobalTrackLocks[i].name); |
| 558 | if (!stricmp(&GlobalTrackLocks[i].name[length - 4], ".d3l")) { |
| 559 | strcpy(buffer, GlobalTrackLocks[i].name); |
| 560 | buffer[length - 4] = '\0'; |
| 561 | list->AddString(buffer); |
| 562 | } |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | SetStatus("Ready"); |
| 567 | } |
| 568 | |
| 569 | void CScriptLevelInterface::UpdateCheckedOutWithScripts() { |
| 570 | CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_LIST_CHECKEDOUT); |