mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-19 19:35:26 +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
|
|
@ -49,6 +49,8 @@
|
|||
#include "platform/profiler.h"
|
||||
#include "cinterface/cinterface.h";
|
||||
|
||||
#include "core/volume.h"
|
||||
|
||||
//TODO: file io still needs some work...
|
||||
|
||||
#define MAX_MAC_PATH_LONG 2048
|
||||
|
|
@ -634,7 +636,10 @@ bool Platform::isFile(const char *path)
|
|||
// make sure we can stat the file
|
||||
struct stat statData;
|
||||
if( stat(path, &statData) < 0 )
|
||||
return false;
|
||||
{
|
||||
// Since file does not exist on disk see if it exists in a zip file loaded
|
||||
return Torque::FS::IsFile(path);
|
||||
}
|
||||
|
||||
// now see if it's a regular file
|
||||
if( (statData.st_mode & S_IFMT) == S_IFREG)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue