2015-03-01 20:42:39 +00:00
|
|
|
#ifndef MCFILE_HPP
|
|
|
|
#define MCFILE_HPP
|
2013-07-21 03:57:20 +00:00
|
|
|
|
2014-11-29 03:32:37 +00:00
|
|
|
#include "Athena/Global.hpp"
|
|
|
|
|
2014-04-20 09:14:15 +00:00
|
|
|
namespace Athena
|
2013-07-21 03:57:20 +00:00
|
|
|
{
|
|
|
|
|
2014-11-29 03:32:37 +00:00
|
|
|
class MCSlot;
|
2013-07-21 03:57:20 +00:00
|
|
|
/*! \class MCFile
|
|
|
|
* \brief The Minish Cap data container class class
|
|
|
|
*
|
|
|
|
* Contains all relevant data for a The Minish Cap save,
|
|
|
|
* file.
|
|
|
|
*/
|
|
|
|
class MCFile
|
|
|
|
{
|
|
|
|
public:
|
2014-12-29 04:46:43 +00:00
|
|
|
static const char VERSION_EU_JP[33];
|
|
|
|
static const char VERSION_US[33];
|
2014-11-29 03:32:37 +00:00
|
|
|
enum SlotType
|
|
|
|
{
|
|
|
|
New = 0x54494E49,
|
|
|
|
Valid = 0x4D435A33,
|
|
|
|
Deleted = 0x466C6544
|
|
|
|
};
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
MCFile();
|
2014-11-29 03:32:37 +00:00
|
|
|
|
2014-12-29 04:46:43 +00:00
|
|
|
static atUint8* unscramble(atUint8* data, atUint64 length);
|
2013-07-21 03:57:20 +00:00
|
|
|
private:
|
2014-11-29 03:32:37 +00:00
|
|
|
MCSlot* m_slots[3];
|
2013-07-21 03:57:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // zelda
|
2015-03-01 20:42:39 +00:00
|
|
|
#endif // MCFILE_HPP
|