mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
DirectoryBlob: Move constants to .cpp file
This commit is contained in:
parent
12cbeb2288
commit
b8d8c7370f
@ -34,15 +34,21 @@ static u32 ComputeNameSize(const File::FSTEntry& parent_entry);
|
||||
static std::string ASCIIToUppercase(std::string str);
|
||||
static void ConvertUTF8NamesToSHIFTJIS(File::FSTEntry& parent_entry);
|
||||
|
||||
constexpr u8 ENTRY_SIZE = 0x0c;
|
||||
constexpr u8 FILE_ENTRY = 0;
|
||||
constexpr u8 DIRECTORY_ENTRY = 1;
|
||||
constexpr u64 DISKHEADER_ADDRESS = 0;
|
||||
constexpr u64 DISKHEADERINFO_ADDRESS = 0x440;
|
||||
constexpr u64 APPLOADER_ADDRESS = 0x2440;
|
||||
constexpr size_t MAX_NAME_LENGTH = 0x3df;
|
||||
constexpr size_t MAX_ID_LENGTH = 6;
|
||||
|
||||
constexpr u64 GAME_PARTITION_ADDRESS = 0x50000;
|
||||
constexpr u64 PARTITION_TABLE_ADDRESS = 0x40000;
|
||||
const std::array<u32, 10> PARTITION_TABLE = {
|
||||
{Common::swap32(1), Common::swap32((PARTITION_TABLE_ADDRESS + 0x20) >> 2), 0, 0, 0, 0, 0, 0,
|
||||
Common::swap32(GAME_PARTITION_ADDRESS >> 2), 0}};
|
||||
|
||||
const size_t DirectoryBlobReader::MAX_NAME_LENGTH;
|
||||
const size_t DirectoryBlobReader::MAX_ID_LENGTH;
|
||||
|
||||
static bool PathCharactersEqual(char a, char b)
|
||||
{
|
||||
return a == b
|
||||
|
@ -121,15 +121,6 @@ private:
|
||||
|
||||
u64 m_fst_address;
|
||||
u64 m_dol_address;
|
||||
|
||||
static constexpr u8 ENTRY_SIZE = 0x0c;
|
||||
static constexpr u8 FILE_ENTRY = 0;
|
||||
static constexpr u8 DIRECTORY_ENTRY = 1;
|
||||
static constexpr u64 DISKHEADER_ADDRESS = 0;
|
||||
static constexpr u64 DISKHEADERINFO_ADDRESS = 0x440;
|
||||
static constexpr u64 APPLOADER_ADDRESS = 0x2440;
|
||||
static const size_t MAX_NAME_LENGTH = 0x3df;
|
||||
static const size_t MAX_ID_LENGTH = 6;
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
Loading…
Reference in New Issue
Block a user