Removed ReadToEeRam handler from Cdvdfsv.

This commit is contained in:
Jean-Philip Desjardins 2015-06-07 23:06:48 -04:00
parent b78697dc68
commit f6672d5b95
4 changed files with 0 additions and 21 deletions

View File

@ -392,8 +392,6 @@ void CPS2VM::ResetVM()
m_iopOs->GetLoadcore()->SetLoadExecutableHandler(std::bind(&CPS2OS::LoadExecutable, m_ee->m_os, std::placeholders::_1, std::placeholders::_2));
m_iopOs->GetCdvdfsv()->SetReadToEeRamHandler(std::bind(&CPS2VM::ReadToEeRam, this, std::placeholders::_1, std::placeholders::_2));
m_vblankTicks = ONSCREEN_TICKS;
m_inVblank = false;
@ -776,11 +774,6 @@ void CPS2VM::RegisterModulesInPadHandler()
m_pad->InsertListener(&m_iop->m_sio2);
}
void CPS2VM::ReadToEeRam(uint32 address, uint32 size)
{
m_ee->m_executor.ClearActiveBlocksInRange(address, address + size);
}
void CPS2VM::ReloadExecutable(const char* executablePath, const CPS2OS::ArgumentList& arguments)
{
ResetVM();

View File

@ -101,7 +101,6 @@ private:
void SaveVMState(const char*, unsigned int&);
void LoadVMState(const char*, unsigned int&);
void ReadToEeRam(uint32, uint32);
void ReloadExecutable(const char*, const CPS2OS::ArgumentList&);
void ResumeImpl();

View File

@ -67,11 +67,6 @@ void CCdvdfsv::ProcessCommands(CSifMan* sifMan)
m_iso->ReadBlock(m_pendingReadSector + i, eeRam + (m_pendingReadAddr + (i * sectorSize)));
}
}
if(m_readToEeRamHandler)
{
m_readToEeRamHandler(m_pendingReadAddr, sectorSize * m_pendingReadCount);
}
}
else if(m_pendingCommand == COMMAND_READIOP)
{
@ -94,11 +89,6 @@ void CCdvdfsv::SetIsoImage(CISO9660* iso)
m_iso = iso;
}
void CCdvdfsv::SetReadToEeRamHandler(const ReadToEeRamHandler& readToEeRamHandler)
{
m_readToEeRamHandler = readToEeRamHandler;
}
void CCdvdfsv::Invoke(CMIPS& context, unsigned int functionId)
{
throw std::runtime_error("Not implemented.");

View File

@ -22,7 +22,6 @@ namespace Iop
void ProcessCommands(CSifMan*);
void SetIsoImage(CISO9660*);
void SetReadToEeRamHandler(const ReadToEeRamHandler&);
enum MODULE_ID
{
@ -72,7 +71,5 @@ namespace Iop
CSifModuleAdapter m_module597;
CSifModuleAdapter m_module59A;
CSifModuleAdapter m_module59C;
ReadToEeRamHandler m_readToEeRamHandler;
};
}