mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
Bug fix for loading compiled dsos
This commit is contained in:
parent
ee0018c204
commit
0d3a0f88e6
1 changed files with 4 additions and 2 deletions
|
|
@ -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 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 );
|
compiledStream = FileStream::createAndOpen( nameBuffer, Torque::FS::File::Read );
|
||||||
if (compiledStream)
|
if (compiledStream)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue