mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Merge pull request #4352 from lioncash/fwd
NANDContentLoader: Add IOFile forward declaration
This commit is contained in:
@ -96,6 +96,12 @@ std::string CSharedContent::AddSharedContent(const u8* hash)
|
|||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CNANDContentDataFile::CNANDContentDataFile(const std::string& filename) : m_filename{filename}
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
CNANDContentDataFile::~CNANDContentDataFile() = default;
|
||||||
|
|
||||||
void CNANDContentDataFile::EnsureOpen()
|
void CNANDContentDataFile::EnsureOpen()
|
||||||
{
|
{
|
||||||
if (!m_file)
|
if (!m_file)
|
||||||
|
@ -13,13 +13,15 @@
|
|||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/NandPaths.h"
|
#include "Common/NandPaths.h"
|
||||||
|
|
||||||
namespace DiscIO
|
namespace File
|
||||||
{
|
{
|
||||||
enum class Country;
|
class IOFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace DiscIO
|
namespace DiscIO
|
||||||
{
|
{
|
||||||
|
enum class Country;
|
||||||
|
|
||||||
bool AddTicket(u64 title_id, const std::vector<u8>& ticket);
|
bool AddTicket(u64 title_id, const std::vector<u8>& ticket);
|
||||||
|
|
||||||
class CNANDContentData
|
class CNANDContentData
|
||||||
@ -35,7 +37,9 @@ public:
|
|||||||
class CNANDContentDataFile final : public CNANDContentData
|
class CNANDContentDataFile final : public CNANDContentData
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit CNANDContentDataFile(const std::string& filename) : m_filename(filename) {}
|
explicit CNANDContentDataFile(const std::string& filename);
|
||||||
|
~CNANDContentDataFile();
|
||||||
|
|
||||||
void Open() override;
|
void Open() override;
|
||||||
std::vector<u8> Get() override;
|
std::vector<u8> Get() override;
|
||||||
bool GetRange(u32 start, u32 size, u8* buffer) override;
|
bool GetRange(u32 start, u32 size, u8* buffer) override;
|
||||||
|
Reference in New Issue
Block a user