mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
52 lines
No EOL
1.4 KiB
C++
52 lines
No EOL
1.4 KiB
C++
#pragma once
|
|
#include <string>
|
|
#include <fnd/types.h>
|
|
#include <fnd/ISerialisable.h>
|
|
#include <fnd/List.h>
|
|
#include <nx/fac.h>
|
|
|
|
|
|
namespace nx
|
|
{
|
|
class FileSystemAccessControlBinary : public fnd::ISerialisable
|
|
{
|
|
public:
|
|
FileSystemAccessControlBinary();
|
|
FileSystemAccessControlBinary(const FileSystemAccessControlBinary& other);
|
|
|
|
void operator=(const FileSystemAccessControlBinary& other);
|
|
bool operator==(const FileSystemAccessControlBinary& other) const;
|
|
bool operator!=(const FileSystemAccessControlBinary& other) const;
|
|
|
|
// export/import binary
|
|
void toBytes();
|
|
void fromBytes(const byte_t* data, size_t len);
|
|
const fnd::Vec<byte_t>& getBytes() const;
|
|
|
|
// variables
|
|
void clear();
|
|
|
|
uint32_t getFormatVersion() const;
|
|
void setFormatVersion(uint32_t version);
|
|
|
|
const fnd::List<fac::FsAccessFlag>& getFsaRightsList() const;
|
|
void setFsaRightsList(const fnd::List<fac::FsAccessFlag>& list);
|
|
|
|
const fnd::List<uint32_t>& getContentOwnerIdList() const;
|
|
void setContentOwnerIdList(const fnd::List<uint32_t>& list);
|
|
|
|
const fnd::List<uint32_t>& getSaveDataOwnerIdList() const;
|
|
void setSaveDataOwnerIdList(const fnd::List<uint32_t>& list);
|
|
private:
|
|
const std::string kModuleName = "FILE_SYSTEM_ACCESS_CONTROL_BINARY";
|
|
|
|
// raw data
|
|
fnd::Vec<byte_t> mRawBinary;
|
|
|
|
// variables
|
|
uint32_t mVersion;
|
|
fnd::List<fac::FsAccessFlag> mFsaRights;
|
|
fnd::List<uint32_t> mContentOwnerIdList;
|
|
fnd::List<uint32_t> mSaveDataOwnerIdList;
|
|
};
|
|
} |