mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00
45 lines
814 B
C++
45 lines
814 B
C++
#ifndef _SAVEEXPORTER_H_
|
|
#define _SAVEEXPORTER_H_
|
|
|
|
#include "filesystem_def.h"
|
|
#include "Types.h"
|
|
#include "Stream.h"
|
|
|
|
class CSaveExporter
|
|
{
|
|
public:
|
|
static void ExportPSU(Framework::CStream&, const fs::path&);
|
|
|
|
private:
|
|
#pragma pack(push, 1)
|
|
|
|
struct PSUENTRY
|
|
{
|
|
struct TIME
|
|
{
|
|
uint8 nUnknown;
|
|
uint8 nSecond;
|
|
uint8 nMinute;
|
|
uint8 nHour;
|
|
uint8 nDay;
|
|
uint8 nMonth;
|
|
uint16 nYear;
|
|
};
|
|
|
|
uint32 nFlags;
|
|
uint32 nSize;
|
|
TIME CreationTime;
|
|
uint32 nSector;
|
|
uint32 nChecksum;
|
|
TIME ModificationTime;
|
|
uint8 Padding[0x20];
|
|
uint8 sName[0x1C0];
|
|
};
|
|
static_assert(sizeof(PSUENTRY) == 0x200, "Size of PSUENTRY structure must be 0x200 bytes");
|
|
|
|
#pragma pack(pop)
|
|
|
|
static void PSU_CopyTime(PSUENTRY::TIME*, const fs::file_time_type&);
|
|
};
|
|
|
|
#endif
|