mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +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 ) )
|
||||
|
|
|
|||
|
|
@ -70,7 +70,11 @@ bool MountZips(const String &root)
|
|||
for(S32 i = 0;i < outList.size();++i)
|
||||
{
|
||||
String &zipfile = outList[i];
|
||||
#ifdef TORQUE_ZIP_DISK_LAYOUT
|
||||
mounted += (S32)Mount(root, new ZipFileSystem(zipfile, false));
|
||||
#else
|
||||
mounted += (S32)Mount(root, new ZipFileSystem(zipfile, true));
|
||||
#endif
|
||||
}
|
||||
|
||||
return mounted == outList.size();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue