2014-04-20 09:14:15 +00:00
|
|
|
// This file is part of libAthena.
|
2013-07-21 03:57:20 +00:00
|
|
|
//
|
2014-04-20 09:14:15 +00:00
|
|
|
// libAthena is free software: you can redistribute it and/or modify
|
2013-07-21 03:57:20 +00:00
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
2014-04-20 09:14:15 +00:00
|
|
|
// libAthena is distributed in the hope that it will be useful,
|
2013-07-21 03:57:20 +00:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
2014-04-20 09:14:15 +00:00
|
|
|
// along with libAthena. If not, see <http://www.gnu.org/licenses/>
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
#ifndef __MCFILE_HPP__
|
|
|
|
#define __MCFILE_HPP__
|
|
|
|
|
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
|
|
|
|
#endif // __MCFILE_HPP__
|