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

Method UpdateCheckedOutWithLevels

editor/ScriptLevelInterface.cpp:542–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540}
541
542void 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
569void CScriptLevelInterface::UpdateCheckedOutWithScripts() {
570 CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_LIST_CHECKEDOUT);

Callers

nothing calls this directly

Calls 1

AddStringMethod · 0.80

Tested by

no test coverage detected