diff options
| author | JosJuice <josjuice@gmail.com> | 2014-12-28 10:35:48 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2014-12-28 10:35:48 +0100 |
| commit | bb93336ecf9f74c59cab21a582704cba189e813f (patch) | |
| tree | 8808903f62623beaa8b981c2b09819a2a7aa8574 /Source/Core/DiscIO/VolumeWad.cpp | |
| parent | 72f8f243c78a79aae0fcb2eaaea8239723a5eb78 (diff) | |
DiscIO: Replace "raw" functions with "decrypt" parameters
This is intended to make decryption look less implicit in the code.
Diffstat (limited to 'Source/Core/DiscIO/VolumeWad.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWad.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp index fd189c39c1..014792fc75 100644 --- a/Source/Core/DiscIO/VolumeWad.cpp +++ b/Source/Core/DiscIO/VolumeWad.cpp @@ -44,8 +44,11 @@ CVolumeWAD::~CVolumeWAD() { } -bool CVolumeWAD::Read(u64 _Offset, u64 _Length, u8* _pBuffer) const +bool CVolumeWAD::Read(u64 _Offset, u64 _Length, u8* _pBuffer, bool decrypt) const { + if (decrypt) + PanicAlertT("Tried to decrypt data from a non-Wii volume"); + if (m_pReader == nullptr) return false; |
