VolumeWad: In-class initialise member variables
This commit is contained in:
parent
1c854f2daa
commit
6d909b3e30
|
@ -22,9 +22,7 @@
|
||||||
|
|
||||||
namespace DiscIO
|
namespace DiscIO
|
||||||
{
|
{
|
||||||
CVolumeWAD::CVolumeWAD(std::unique_ptr<IBlobReader> reader)
|
CVolumeWAD::CVolumeWAD(std::unique_ptr<IBlobReader> reader) : m_pReader(std::move(reader))
|
||||||
: m_pReader(std::move(reader)), m_offset(0), m_tmd_offset(0), m_opening_bnr_offset(0),
|
|
||||||
m_hdr_size(0), m_cert_size(0), m_tick_size(0), m_tmd_size(0), m_data_size(0)
|
|
||||||
{
|
{
|
||||||
// Source: http://wiibrew.org/wiki/WAD_files
|
// Source: http://wiibrew.org/wiki/WAD_files
|
||||||
Read(0x00, 4, (u8*)&m_hdr_size);
|
Read(0x00, 4, (u8*)&m_hdr_size);
|
||||||
|
|
|
@ -49,14 +49,14 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::unique_ptr<IBlobReader> m_pReader;
|
std::unique_ptr<IBlobReader> m_pReader;
|
||||||
u32 m_offset;
|
u32 m_offset = 0;
|
||||||
u32 m_tmd_offset;
|
u32 m_tmd_offset = 0;
|
||||||
u32 m_opening_bnr_offset;
|
u32 m_opening_bnr_offset = 0;
|
||||||
u32 m_hdr_size;
|
u32 m_hdr_size = 0;
|
||||||
u32 m_cert_size;
|
u32 m_cert_size = 0;
|
||||||
u32 m_tick_size;
|
u32 m_tick_size = 0;
|
||||||
u32 m_tmd_size;
|
u32 m_tmd_size = 0;
|
||||||
u32 m_data_size;
|
u32 m_data_size = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
Loading…
Reference in New Issue