mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Make DVDLowOpenPartition actually change partitions.
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
Reference in New Issue
Block a user