Skip to content

Commit

Permalink
Merge pull request #1682 from JosJuice/volumehandler-return
Browse files Browse the repository at this point in the history
VolumeHandler: Return success value
  • Loading branch information
lioncash committed Dec 12, 2014
2 parents 971a95a + 16f3970 commit 815c29f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions Source/Core/Core/VolumeHandler.cpp
Expand Up @@ -67,20 +67,16 @@ u32 Read32(u64 _Offset)
bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
{
if (g_pVolume != nullptr && ptr)
{
g_pVolume->Read(_dwOffset, _dwLength, ptr);
return true;
}
return g_pVolume->Read(_dwOffset, _dwLength, ptr);

return false;
}

bool RAWReadToPtr( u8* ptr, u64 _dwOffset, u64 _dwLength )
bool RAWReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength)
{
if (g_pVolume != nullptr && ptr)
{
g_pVolume->RAWRead(_dwOffset, _dwLength, ptr);
return true;
}
return g_pVolume->RAWRead(_dwOffset, _dwLength, ptr);

return false;
}

Expand Down

0 comments on commit 815c29f

Please sign in to comment.