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

Method GetNumMaps

neo/framework/FileSystem.cpp:3852–3872  ·  view source on GitHub ↗

=============== idFileSystemLocal::GetNumMaps account for actual decls and for addon maps =============== */

Source from the content-addressed store, hash-verified

3850===============
3851*/
3852int idFileSystemLocal::GetNumMaps() {
3853 int i;
3854 searchpath_t *search = NULL;
3855 int ret = declManager->GetNumDecls( DECL_MAPDEF );
3856
3857 // add to this all addon decls - coming from all addon packs ( searched or not )
3858 for ( i = 0; i < 2; i++ ) {
3859 if ( i == 0 ) {
3860 search = searchPaths;
3861 } else if ( i == 1 ) {
3862 search = addonPaks;
3863 }
3864 for ( ; search ; search = search->next ) {
3865 if ( !search->pack || !search->pack->addon || !search->pack->addon_info ) {
3866 continue;
3867 }
3868 ret += search->pack->addon_info->mapDecls.Num();
3869 }
3870 }
3871 return ret;
3872}
3873
3874/*
3875===============

Callers 5

HandleGuiCommandsMethod · 0.80
ServerCallVoteMethod · 0.80
HandleGuiCommandsMethod · 0.80
ServerCallVoteMethod · 0.80

Calls 2

GetNumDeclsMethod · 0.80
NumMethod · 0.45

Tested by

no test coverage detected