PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Get E_FILEINFO from packed file

Hi,
I'm trying to write a small program which updates an EPK only if files added to it have been modified.

In order to do that, I want to compare the file's timestamp on the file system (retrieved by calling win32's function GetFileTime) with the timestamp of the specified file packed inside the EPK.
I found the function PackGetFileInfo, which returns an EPK_FILEINFO with filedate as the modified time in seconds (ETYPE_TIMESTAMP). But I need the file time formatted as an E_DATETIME struct (so I could compare it with win32's timestamp (after formatting it by calling FileTimeToSystemTime).

Is there a way to extract an E_FILEINFO (similar to calling GetInformation()) from a packed file?
Or some other way to get the packed file's modified time as a E_DATETIME?

Thank you in advance!
rel1986 · 13 Sep 2009, 16:57 UTC — solved it
using ClassEStd::TimestampToDateTime()
Alright,

Great to hear that you've found the solution already :)