mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-07-15 15:40:55 -05:00
36 lines
1.2 KiB
C++
36 lines
1.2 KiB
C++
#pragma once
|
|
#include "data/TitleInfo.hpp"
|
|
#include <cstdint>
|
|
#include <switch.h>
|
|
|
|
namespace fs
|
|
{
|
|
/// @brief This is the magic value written to the beginning.
|
|
constexpr uint64_t SAVE_META_MAGIC = 0x56534B4A;
|
|
|
|
/// @brief This struct is for storing the data necessary to restore saves to a different console.
|
|
typedef struct __attribute__((packed))
|
|
{
|
|
/// @brief Magic.
|
|
uint32_t m_magic;
|
|
/// @brief Application ID.
|
|
uint64_t m_applicationID;
|
|
/// @brief Save data type.
|
|
uint8_t m_saveType;
|
|
/// @brief Save data rank.
|
|
uint8_t m_saveRank;
|
|
/// @brief Save data space id.
|
|
uint8_t m_saveSpaceID;
|
|
/// @brief Base save data size.
|
|
int64_t m_saveDataSize;
|
|
/// @brief Maximum save size "allowed".
|
|
int64_t m_saveDataSizeMax;
|
|
/// @brief Base journaling size.
|
|
int64_t m_journalSize;
|
|
/// @brief Maximum journaling size.
|
|
int64_t m_journalSizeMax;
|
|
/// @brief Total size of the files in the backup. For ZIP, this is uncompressed.
|
|
uint64_t m_totalSaveSize;
|
|
} SaveMetaData;
|
|
} // namespace fs
|