===================== idFileSystemLocal::UpdatePureServerChecksums ===================== */
| 2391 | ===================== |
| 2392 | */ |
| 2393 | void idFileSystemLocal::UpdatePureServerChecksums( void ) { |
| 2394 | searchpath_t *search; |
| 2395 | int i; |
| 2396 | pureStatus_t status; |
| 2397 | |
| 2398 | serverPaks.Clear(); |
| 2399 | for ( search = searchPaths; search; search = search->next ) { |
| 2400 | // is the element a referenced pak file? |
| 2401 | if ( !search->pack ) { |
| 2402 | continue; |
| 2403 | } |
| 2404 | status = GetPackStatus( search->pack ); |
| 2405 | if ( status == PURE_NEVER ) { |
| 2406 | continue; |
| 2407 | } |
| 2408 | if ( status == PURE_NEUTRAL && !search->pack->referenced ) { |
| 2409 | continue; |
| 2410 | } |
| 2411 | serverPaks.Append( search->pack ); |
| 2412 | if ( serverPaks.Num() >= MAX_PURE_PAKS ) { |
| 2413 | common->FatalError( "MAX_PURE_PAKS ( %d ) exceeded\n", MAX_PURE_PAKS ); |
| 2414 | } |
| 2415 | } |
| 2416 | if ( fs_debug.GetBool() ) { |
| 2417 | idStr checks; |
| 2418 | for ( i = 0; i < serverPaks.Num(); i++ ) { |
| 2419 | checks += va( "%x ", serverPaks[ i ]->checksum ); |
| 2420 | } |
| 2421 | common->Printf( "set pure list - %d paks ( %s)\n", serverPaks.Num(), checks.c_str() ); |
| 2422 | } |
| 2423 | } |
| 2424 | |
| 2425 | /* |
| 2426 | ===================== |
no test coverage detected