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

Method ProcessPage

editor/TableFileFilterMng.cpp:800–820  ·  view source on GitHub ↗

Either adds the given level page to the list, or removes it

Source from the content-addressed store, hash-verified

798
799// Either adds the given level page to the list, or removes it
800bool PageDataList::ProcessPage(char *page_name, uint8_t page_type, int process_type, int flags) {
801 CWaitCursor wc;
802
803 switch (process_type) {
804 case ADD_PAGES:
805 AddToList(page_name, page_type, ADDED_FOR_LEVEL_FLAG);
806 break;
807 case REMOVE_PAGES:
808 RemoveFromList(page_name, page_type);
809 break;
810 default:
811 break;
812 }
813
814 m_NumPagesText->Format("%d", m_size);
815 m_Dlg->UpdateData(FALSE);
816 DeferMessages();
817 wc.Restore();
818
819 return TRUE;
820}
821
822// Get extension of a file
823bool GetFileExt(char *file, char *ext) {

Callers

nothing calls this directly

Calls 2

UpdateDataMethod · 0.80
DeferMessagesFunction · 0.70

Tested by

no test coverage detected