MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / UpdateFile

Method UpdateFile

Editor/Util/PakFile.cpp:72–81  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

70
71//////////////////////////////////////////////////////////////////////////
72bool CPakFile::UpdateFile( const char *filename,CMemFile &file,bool bCompress )
73{
74 if (m_pArchive)
75 {
76 int nSize = file.GetLength();
77 UpdateFile( filename,file.Detach(),nSize,bCompress );
78 return true;
79 }
80 return false;
81}
82
83//////////////////////////////////////////////////////////////////////////
84bool CPakFile::UpdateFile( const char *filename,CMemoryBlock &mem,bool bCompress )

Callers 15

SaveAllSequencesMethod · 0.45
ExportParticlesMethod · 0.45
ExportHeightMapMethod · 0.45
ExportStaticObjectsMethod · 0.45
ExportLevelDataMethod · 0.45
ExportLevelInfoMethod · 0.45
ExportSurfaceTextureMethod · 0.45
ExportAIGraphMethod · 0.45
ExportTerrainBeachesMethod · 0.45
ExportMusicMethod · 0.45
ExportMaterialsMethod · 0.45

Calls 4

GetLengthMethod · 0.45
DetachMethod · 0.45
GetBufferMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected