Merge pull request #8644 from JosJuice/rework-tgc

DiscIO: Rework the implementation of TGC reading
This commit is contained in:
JMC47
2020-09-06 07:06:26 -04:00
committed by GitHub
3 changed files with 65 additions and 99 deletions

View File

@ -4,9 +4,9 @@
#pragma once
#include <array>
#include <memory>
#include <utility>
#include <vector>
#include "Common/CommonTypes.h"
#include "Common/File.h"
@ -57,12 +57,10 @@ public:
private:
TGCFileReader(File::IOFile file);
bool InternalRead(u64 offset, u64 nbytes, u8* out_ptr);
File::IOFile m_file;
u64 m_size;
s64 m_file_area_shift;
std::vector<u8> m_fst;
// Stored as big endian in memory, regardless of the host endianness
TGCHeader m_header = {};