mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Get rid of VolumeHandler
VolumeHandler is basically just a wrapper around a single IVolume object. This change moves that object to DVDInterface, moves the Read32 function to IVolume, and gets rid of the rest of VolumeHandler.
This commit is contained in:
@ -20,6 +20,12 @@ public:
|
||||
|
||||
// decrypt parameter must be false if not reading a Wii disc
|
||||
virtual bool Read(u64 _Offset, u64 _Length, u8* _pBuffer, bool decrypt) const = 0;
|
||||
virtual u32 Read32(u64 _Offset, bool decrypt) const
|
||||
{
|
||||
u32 temp;
|
||||
Read(_Offset, sizeof(u32), (u8*)&temp, decrypt);
|
||||
return Common::swap32(temp);
|
||||
}
|
||||
|
||||
virtual bool GetTitleID(u8*) const { return false; }
|
||||
virtual std::unique_ptr<u8[]> GetTMD(u32 *_sz) const
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "Common/CommonTypes.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Common/MathUtil.h"
|
||||
#include "Core/VolumeHandler.h"
|
||||
#include "DiscIO/FileBlob.h"
|
||||
#include "DiscIO/FileMonitor.h"
|
||||
#include "DiscIO/Volume.h"
|
||||
|
Reference in New Issue
Block a user