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

Method UpdateCheckedOutWithScripts

editor/ScriptLevelInterface.cpp:569–594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569void 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
596void CScriptLevelInterface::UpdateScriptListWithLevels() {
597 CComboBox *combo = (CComboBox *)GetDlgItem(IDC_SELECTED_SCRIPT);

Callers

nothing calls this directly

Calls 1

AddStringMethod · 0.80

Tested by

no test coverage detected