Athena IO Library
MCFile.hpp
1 // This file is part of libAthena.
2 //
3 // libAthena is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 3 of the License, or
6 // (at your option) any later version.
7 //
8 // libAthena is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with libAthena. If not, see <http://www.gnu.org/licenses/>
15 
16 #ifndef MCFILE_HPP
17 #define MCFILE_HPP
18 
19 #include "Athena/Global.hpp"
20 
21 namespace Athena
22 {
23 
24 class MCSlot;
31 class MCFile
32 {
33 public:
34  static const char VERSION_EU_JP[33];
35  static const char VERSION_US[33];
36  enum SlotType
37  {
38  New = 0x54494E49,
39  Valid = 0x4D435A33,
40  Deleted = 0x466C6544
41  };
42 
43  MCFile();
44 
45  static atUint8* unscramble(atUint8* data, atUint64 length);
46 private:
47  MCSlot* m_slots[3];
48 };
49 
50 } // zelda
51 #endif // MCFILE_HPP
The Minish Cap data container class class.
Definition: MCFile.hpp:31