mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Make DVDLowOpenPartition actually change partitions.
This commit is contained in:
parent
d4125231f3
commit
b1df4e5986
6 changed files with 57 additions and 40 deletions
|
@ -14,6 +14,7 @@
|
|||
#include "Common/Logging/Log.h"
|
||||
#include "DiscIO/Blob.h"
|
||||
#include "DiscIO/Volume.h"
|
||||
#include "DiscIO/VolumeCreator.h"
|
||||
#include "DiscIO/VolumeGC.h"
|
||||
#include "DiscIO/VolumeWiiCrypted.h"
|
||||
|
||||
|
@ -33,6 +34,17 @@ CVolumeWiiCrypted::CVolumeWiiCrypted(IBlobReader* _pReader, u64 _VolumeOffset,
|
|||
m_pBuffer = new u8[0x8000];
|
||||
}
|
||||
|
||||
bool CVolumeWiiCrypted::ChangePartition(u64 offset)
|
||||
{
|
||||
m_VolumeOffset = offset;
|
||||
m_LastDecryptedBlockOffset = -1;
|
||||
|
||||
u8 volume_key[16];
|
||||
DiscIO::VolumeKeyForParition(*m_pReader, offset, volume_key);
|
||||
aes_setkey_dec(m_AES_ctx.get(), volume_key, 128);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
CVolumeWiiCrypted::~CVolumeWiiCrypted()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue