Prioritize source SWF and image (for SWF atlas) files over their binary equivalents in resources files when not in production mode. Now you can replace individual menus without having to extract and delete all the base/*.resources files first.

This commit is contained in:
Jonathan Young 2013-09-21 19:35:00 +10:00
parent adf2b63e88
commit 4c7a2c5de3
2 changed files with 2 additions and 2 deletions

View file

@ -466,7 +466,7 @@ bool idBinaryImage::LoadFromGeneratedFile( idFile* bFile, ID_TIME_T sourceFileTi
{
return false;
}
if( fileData.sourceFileTime != sourceFileTime && !fileSystem->InProductionMode() )
if( fileData.sourceFileTime != sourceFileTime && sourceFileTime != 0 && com_productionMode.GetInteger() == 0 )
{
return false;
}

View file

@ -152,7 +152,7 @@ bool idSWF::LoadBinary( const char* bfilename, ID_TIME_T sourceTime )
f->ReadBig( magic );
f->ReadBig( btimestamp );
if( magic != BSWF_MAGIC || ( !fileSystem->InProductionMode() && sourceTime != btimestamp ) )
if( magic != BSWF_MAGIC || ( com_productionMode.GetInteger() == 0 && sourceTime != FILE_NOT_FOUND_TIMESTAMP && sourceTime != btimestamp ) )
{
delete f;
return false;