mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
f78b94077e
These are both used within the banner loaders, and IsValid is exactly the same. So this makes sense.
48 lines
812 B
C++
48 lines
812 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
namespace DiscIO
|
|
{
|
|
|
|
class IFileSystem;
|
|
class IVolume;
|
|
|
|
class IBannerLoader
|
|
{
|
|
public:
|
|
IBannerLoader()
|
|
: m_pBannerFile(nullptr)
|
|
, m_IsValid(false)
|
|
{}
|
|
|
|
virtual ~IBannerLoader()
|
|
{}
|
|
|
|
virtual std::vector<u32> GetBanner(int* pWidth, int* pHeight) = 0;
|
|
|
|
virtual std::vector<std::string> GetNames() = 0;
|
|
virtual std::string GetCompany() = 0;
|
|
virtual std::vector<std::string> GetDescriptions() = 0;
|
|
|
|
bool IsValid()
|
|
{
|
|
return m_IsValid;
|
|
}
|
|
|
|
protected:
|
|
bool m_IsValid;
|
|
u8* m_pBannerFile;
|
|
};
|
|
|
|
IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume);
|
|
|
|
} // namespace DiscIO
|