MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / UpdateScriptList

Method UpdateScriptList

neo/tools/debugger/DebuggerWindow.cpp:661–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659}
660
661void rvDebuggerWindow::UpdateScriptList(void)
662{
663 LVITEM item;
664 ListView_DeleteAllItems(mWndScriptList);
665 ZeroMemory(&item, sizeof(item));
666 item.mask = LVIF_TEXT | LVIF_IMAGE;
667
668 idStrList& scripts = mClient->GetServerScripts();
669 for (int i = 0; i < scripts.Num(); i++)
670 {
671 item.iItem = ListView_GetItemCount(mWndScriptList);
672 item.pszText = "";
673 //find in activeScripts
674 item.iImage = 0;
675 for (int j = 0; j < mScripts.Num(); j++)
676 {
677 if (!idStr::Icmp(mScripts[j]->GetFilename(), scripts[i]))
678 {
679 item.iImage = 1;
680 break;
681 }
682 }
683 ListView_InsertItem(mWndScriptList, &item);
684 ListView_SetItemText(mWndScriptList, item.iItem, 1, (LPSTR)scripts[i].c_str());
685 }
686}
687
688
689void rvDebuggerWindow::UpdateBreakpointList( void )

Callers 1

WndProcMethod · 0.80

Calls 3

NumMethod · 0.45
GetFilenameMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected