Load T5 fastfiles

This commit is contained in:
Jan
2021-05-12 21:47:34 +02:00
parent e3a3d012e6
commit bb3e7d9e88
18 changed files with 711 additions and 6 deletions

View File

@ -0,0 +1,26 @@
#pragma once
#include <cstdint>
#include <string>
#include "Zone/ZoneTypes.h"
#include "Game/T5/T5.h"
namespace T5
{
class ZoneConstants final
{
ZoneConstants() = default;
public:
static constexpr const char* MAGIC_UNSIGNED = "IWffu100";
static constexpr int ZONE_VERSION = 473;
static_assert(std::char_traits<char>::length(MAGIC_UNSIGNED) == sizeof(ZoneHeader::m_magic));
static constexpr size_t AUTHED_CHUNK_SIZE = 0x2000;
static constexpr unsigned AUTHED_CHUNK_COUNT_PER_GROUP = 256;
static constexpr int OFFSET_BLOCK_BIT_COUNT = 3;
static constexpr block_t INSERT_BLOCK = XFILE_BLOCK_VIRTUAL;
};
}