athena/include/Athena/MCFile.hpp

52 lines
1.3 KiB
C++
Raw Normal View History

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__
#include "Athena/Global.hpp"
2014-04-20 09:14:15 +00:00
namespace Athena
2013-07-21 03:57:20 +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:
static const char VERSION_EU_JP[33];
static const char VERSION_US[33];
enum SlotType
{
New = 0x54494E49,
Valid = 0x4D435A33,
Deleted = 0x466C6544
};
2013-07-21 03:57:20 +00:00
MCFile();
static atUint8* unscramble(atUint8* data, atUint64 length);
2013-07-21 03:57:20 +00:00
private:
MCSlot* m_slots[3];
2013-07-21 03:57:20 +00:00
};
} // zelda
#endif // __MCFILE_HPP__