File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
MTA10/mods/deathmatch/logic Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -364,13 +364,8 @@ void CResource::Load ( CClientEntity *pRootEntity )
364
364
else
365
365
if ( pResourceFile->IsAutoDownload () )
366
366
{
367
- // Load the file
368
- std::vector < char > buffer;
369
- FileLoad ( pResourceFile->GetName (), buffer );
370
- unsigned int iSize = buffer.size ();
371
-
372
- // Check the contents
373
- if ( iSize > 0 && CChecksum::GenerateChecksumFromBuffer ( &buffer.at ( 0 ), iSize ) == pResourceFile->GetServerChecksum () )
367
+ // Check the file contents
368
+ if ( CChecksum::GenerateChecksumFromFile ( pResourceFile->GetName () ) == pResourceFile->GetServerChecksum () )
374
369
{
375
370
SString strError = " " ;
376
371
bool bIsBad = CheckFileForCorruption ( pResourceFile->GetName ( ), strError );
You can’t perform that action at this time.
0 commit comments