nstool/lib/libhac/include/nn/hac/fac.h

60 lines
1.1 KiB
C
Raw Normal View History

2018-06-24 08:18:54 +00:00
#pragma once
#include <fnd/types.h>
2018-08-07 07:17:51 +00:00
namespace nn
{
namespace hac
2018-06-24 08:18:54 +00:00
{
namespace fac
{
2018-06-29 07:09:05 +00:00
static const uint32_t kFacFormatVersion = 1;
static const size_t kSectionAlignSize = 4;
2018-06-24 08:18:54 +00:00
enum FsAccessFlag
{
FSA_APPLICATION_INFO,
FSA_BOOT_MODE_CONTROL,
FSA_CALIBRATION,
FSA_SYSTEM_SAVE_DATA,
FSA_GAME_CARD,
FSA_SAVE_DATA_BACKUP,
FSA_SAVE_DATA_MANAGEMENT,
FSA_BIS_ALL_RAW,
FSA_GAME_CARD_RAW,
FSA_GAME_CARD_PRIVATE,
FSA_SET_TIME,
FSA_CONTENT_MANAGER,
FSA_IMAGE_MANAGER,
FSA_CREATE_SAVE_DATA,
FSA_SYSTEM_SAVE_DATA_MANAGEMENT,
FSA_BIS_FILE_SYSTEM,
FSA_SYSTEM_UPDATE,
FSA_SAVE_DATA_META,
FSA_DEVICE_SAVE_CONTROL,
FSA_SETTINGS_CONTROL,
FSA_DEBUG = 62,
FSA_FULL_PERMISSION = 63,
};
enum SaveDataOwnerIdAccessType
{
SDO_READ = 1,
SDO_WRITE,
SDO_READWRITE
};
2018-06-24 08:18:54 +00:00
}
#pragma pack(push,1)
struct sFacHeader
{
le_uint32_t version; // default 1
le_uint64_t fac_flags;
struct sFacSection
{
le_uint32_t offset;
le_uint32_t size;
2018-06-24 08:18:54 +00:00
} content_owner_ids, save_data_owner_ids; // the data for these follow later in binary. start/end relative to base of FacData instance
};
#pragma pack(pop)
2018-08-07 07:17:51 +00:00
}
2018-06-24 08:18:54 +00:00
}