Merge pull request #1682 from JosJuice/volumehandler-return
VolumeHandler: Return success value
This commit is contained in:
commit
815c29f6f4
|
@ -67,20 +67,16 @@ u32 Read32(u64 _Offset)
|
||||||
bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
|
bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
|
||||||
{
|
{
|
||||||
if (g_pVolume != nullptr && ptr)
|
if (g_pVolume != nullptr && ptr)
|
||||||
{
|
return g_pVolume->Read(_dwOffset, _dwLength, ptr);
|
||||||
g_pVolume->Read(_dwOffset, _dwLength, ptr);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RAWReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
|
bool RAWReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
|
||||||
{
|
{
|
||||||
if (g_pVolume != nullptr && ptr)
|
if (g_pVolume != nullptr && ptr)
|
||||||
{
|
return g_pVolume->RAWRead(_dwOffset, _dwLength, ptr);
|
||||||
g_pVolume->RAWRead(_dwOffset, _dwLength, ptr);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue