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

Method SetRestartChecksums

neo/framework/FileSystem.cpp:2635–2653  ·  view source on GitHub ↗

===================== idFileSystemLocal::SetRestartChecksums ===================== */

Source from the content-addressed store, hash-verified

2633=====================
2634*/
2635void idFileSystemLocal::SetRestartChecksums( const int pureChecksums[ MAX_PURE_PAKS ] ) {
2636 int i;
2637 pack_t *pack;
2638
2639 restartChecksums.Clear();
2640 i = 0;
2641 while ( pureChecksums[ i ] ) {
2642 pack = GetPackForChecksum( pureChecksums[ i ], true );
2643 if ( !pack ) {
2644 common->FatalError( "SetRestartChecksums failed: no pak for checksum 0x%x\n", pureChecksums[i] );
2645 }
2646 if ( pack->addon && addonChecksums.FindIndex( pack->checksum ) < 0 ) {
2647 // can't mark it pure if we're not even gonna search it :-)
2648 addonChecksums.Append( pack->checksum );
2649 }
2650 restartChecksums.Append( pureChecksums[ i ] );
2651 i++;
2652 }
2653}
2654
2655/*
2656================

Callers 1

Calls 4

ClearMethod · 0.45
FatalErrorMethod · 0.45
FindIndexMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected