* Feature: Augment VFS file information with creation times & update some console functions to use VFS.

This commit is contained in:
Robert MacGregor 2021-12-18 03:56:11 -05:00
parent 277cdf67b0
commit 948bc43d85
7 changed files with 36 additions and 23 deletions

View file

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