mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
* Feature: Augment VFS file information with creation times & update some console functions to use VFS.
This commit is contained in:
parent
277cdf67b0
commit
948bc43d85
7 changed files with 36 additions and 23 deletions
|
|
@ -46,7 +46,8 @@ namespace Torque
|
|||
mBuffer = dMalloc(mBufferSize);
|
||||
dMemset(mBuffer, 0, mBufferSize);
|
||||
mModified = Time::getCurrentTime();
|
||||
mLastAccess = mModified;
|
||||
mLastAccess = mModified;
|
||||
mCreated = mModified;
|
||||
mFileSystem = fs;
|
||||
}
|
||||
|
||||
|
|
@ -62,6 +63,7 @@ namespace Torque
|
|||
attr->size = mFileSize;
|
||||
attr->mtime = mModified;
|
||||
attr->atime = mLastAccess;
|
||||
attr->ctime = mCreated;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -81,6 +83,7 @@ namespace Torque
|
|||
U32 mBufferSize; // This is the size of the memory buffer >= mFileSize
|
||||
U32 mFileSize; // This is the size of the "file" <= mBufferSize
|
||||
Time mModified; // Last modified
|
||||
Time mCreated; // When Created
|
||||
Time mLastAccess; // Last access
|
||||
MemFileSystem* mFileSystem;
|
||||
};
|
||||
|
|
@ -508,4 +511,4 @@ namespace Torque
|
|||
}
|
||||
} // Namespace Mem
|
||||
|
||||
} // Namespace Torque
|
||||
} // Namespace Torque
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue