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

Method OnOverride

editor/FilePageDialog.cpp:468–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void CFilePageDialog::OnOverride() {
469 int n;
470 mngs_Pagelock temp_pl;
471
472 if (Num_gamefiles < 1)
473 return;
474
475 int *listbox_map;
476 int listbox_count = CreateIndexMap(&listbox_map, IDC_FILELIST);
477 if (!listbox_count)
478 return;
479
480 CCheckListBox *list = (CCheckListBox *)GetDlgItem(IDC_FILELIST);
481 char buffer[_MAX_PATH];
482
483 for (int i = 0; i < listbox_count; i++) {
484 list->GetText(listbox_map[i], buffer);
485 n = FindGameFile(buffer);
486 if (n == -1)
487 continue;
488
489 strcpy(temp_pl.name, Gamefiles[n].name);
490 temp_pl.pagetype = PAGETYPE_GAMEFILE;
491
492 mng_OverrideToUnlocked(&temp_pl);
493 }
494
495 mem_free(listbox_map);
496}
497
498void CFilePageDialog::OnFilesOut() {
499 char str[10000];

Callers

nothing calls this directly

Calls 3

FindGameFileFunction · 0.85
mng_OverrideToUnlockedFunction · 0.85
GetTextMethod · 0.45

Tested by

no test coverage detected