mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Bug fixes for alternative zip layout and define to toggle it on
This commit is contained in:
parent
3df2aa64f4
commit
31036c4031
9 changed files with 46 additions and 5 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include "app/mainLoop.h"
|
||||
#include "platform/input/event.h"
|
||||
#include "platform/typetraits.h"
|
||||
#include "core/volume.h"
|
||||
|
||||
|
||||
const F32 TypeTraits< F32 >::MIN = - F32_MAX;
|
||||
|
|
@ -132,8 +133,10 @@ const bool Platform::KeyboardInputExclusion::checkAgainstInput( const InputEvent
|
|||
S32 Platform::compareModifiedTimes( const char *firstPath, const char *secondPath )
|
||||
{
|
||||
FileTime firstModTime;
|
||||
if ( !getFileTimes( firstPath, NULL, &firstModTime ) )
|
||||
return -1;
|
||||
if ( !getFileTimes( firstPath, NULL, &firstModTime ) ) {
|
||||
//The reason we failed to get file times could be cause it is in a zip. Lets check.
|
||||
return Torque::FS::CompareModifiedTimes(firstPath, secondPath);
|
||||
}
|
||||
|
||||
FileTime secondModTime;
|
||||
if ( !getFileTimes( secondPath, NULL, &secondModTime ) )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue