mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 21:02:39 +02:00
Removed PACKED from FsSaveDataInfo/FsTimeStampRaw and fixed FsSave alignment.
This commit is contained in:
parent
d2e2c15937
commit
8a3f105bab
@ -62,13 +62,13 @@ typedef struct
|
||||
typedef struct
|
||||
{
|
||||
u64 titleID; ///< titleID of the savedata to access when accessing other titles' savedata via SaveData, otherwise FS_SAVEDATA_CURRENT_TITLEID.
|
||||
u128 userID; ///< userID of the user-specific savedata to access, otherwise FS_SAVEDATA_USERID_COMMONSAVE. See account.h.
|
||||
union { u128 userID; } PACKED; ///< userID of the user-specific savedata to access, otherwise FS_SAVEDATA_USERID_COMMONSAVE. See account.h.
|
||||
u64 saveID; ///< saveID, 0 for SaveData.
|
||||
u64 SaveDataType; ///< See \ref FsSaveDataType.
|
||||
u64 unk_x28; ///< 0 for SystemSaveData/SaveData.
|
||||
u64 unk_x30; ///< 0 for SystemSaveData/SaveData.
|
||||
u64 unk_x38; ///< 0 for SystemSaveData/SaveData.
|
||||
} PACKED FsSave;
|
||||
} FsSave;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -81,7 +81,7 @@ typedef struct
|
||||
u64 titleID; ///< titleID for FsSaveDataType_SaveData.
|
||||
u64 size; ///< Raw saveimage size.
|
||||
u8 unk_x38[0x28]; ///< Unknown. Usually zeros?
|
||||
} PACKED FsSaveDataInfo;
|
||||
} FsSaveDataInfo;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -90,7 +90,7 @@ typedef struct
|
||||
u64 accessed; ///< POSIX timestamp.
|
||||
u8 is_valid; ///< 0x1 when the timestamps are set.
|
||||
u8 padding[7];
|
||||
} PACKED FsTimeStampRaw;
|
||||
} FsTimeStampRaw;
|
||||
|
||||
typedef enum {
|
||||
ENTRYTYPE_DIR = 0,
|
||||
|
Loading…
Reference in New Issue
Block a user