| 466 | } |
| 467 | |
| 468 | void 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 | |
| 498 | void CFilePageDialog::OnFilesOut() { |
| 499 | char str[10000]; |
nothing calls this directly
no test coverage detected