Merge pull request #179 from timmgt/dsocompilebugfix

Bug fix for loading compiled dsos merged into development branch.
This commit is contained in:
SilentMike 2013-01-09 12:58:46 -08:00
commit 0b3e9d73f2

View file

@ -2023,8 +2023,10 @@ DefineEngineFunction( exec, bool, ( const char* fileName, bool noCalls, bool jou
//}
// If we had a DSO, let's check to see if we should be reading from it.
if(compiled && dsoFile != NULL && (scriptFile == NULL|| (scriptModifiedTime - dsoModifiedTime) > Torque::Time(0)))
{
//MGT: fixed bug with dsos not getting recompiled correctly
//Note: Using Nathan Martin's version from the forums since its easier to read and understand
if(compiled && dsoFile != NULL && (scriptFile == NULL|| (dsoModifiedTime >= scriptModifiedTime)))
{ //MGT: end
compiledStream = FileStream::createAndOpen( nameBuffer, Torque::FS::File::Read );
if (compiledStream)
{