Re-add FileMonitor support for Wii discs

This in done in the same way as GC discs, unlike the previous implementation.
This commit is contained in:
JosJuice 2014-12-25 11:01:18 +01:00
parent c5c10fe48b
commit 8624461315
2 changed files with 4 additions and 1 deletions

View File

@ -79,7 +79,7 @@ void ReadGC(const std::string& filename)
if (!OpenISO)
return;
if (!DiscIO::IsVolumeWiiDisc(OpenISO) && !DiscIO::IsVolumeWadFile(OpenISO))
if (!DiscIO::IsVolumeWadFile(OpenISO))
{
pFileSystem = DiscIO::CreateFileSystem(OpenISO);

View File

@ -14,6 +14,7 @@
#include "Common/MsgHandler.h"
#include "Common/Logging/Log.h"
#include "DiscIO/Blob.h"
#include "DiscIO/FileMonitor.h"
#include "DiscIO/Volume.h"
#include "DiscIO/VolumeCreator.h"
#include "DiscIO/VolumeGC.h"
@ -69,6 +70,8 @@ bool CVolumeWiiCrypted::Read(u64 _ReadOffset, u64 _Length, u8* _pBuffer) const
if (m_pReader == nullptr)
return(false);
FileMon::FindFilename(_ReadOffset);
while (_Length > 0)
{
static unsigned char IV[16];