Bug fixes for alternative zip layout and define to toggle it on

This commit is contained in:
Tim Newell 2012-12-15 15:30:10 -05:00 committed by DavidWyand-GG
parent 3df2aa64f4
commit 31036c4031
9 changed files with 46 additions and 5 deletions

View file

@ -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 ) )