Some code cleanup.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1630 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
73a1b9b2e8
commit
34a7e75906
|
@ -223,18 +223,10 @@ void SetDiscInside(bool _DiscInside)
|
||||||
}
|
}
|
||||||
void SwapDisc(const char * fileName)
|
void SwapDisc(const char * fileName)
|
||||||
{
|
{
|
||||||
dvdMem.CoverReg.CVRINT = 1;
|
SetLidOpen(true);
|
||||||
dvdMem.CoverReg.CVRINTMASK = 1;
|
|
||||||
dvdMem.CoverReg.CVR = 1;
|
|
||||||
UpdateInterrupts();
|
|
||||||
// I don't think this is needed, but I am not certain
|
|
||||||
//DiscIO::IVolume* pVolume = DiscIO::CreateVolumeFromFilename("F:/Documents/Games/GameCube/GCM/Super Monkey Ball 2.gcm");
|
|
||||||
VolumeHandler::SetVolumeName(fileName);
|
VolumeHandler::SetVolumeName(fileName);
|
||||||
DVDInterface::SetDiscInside(VolumeHandler::IsValid());
|
DVDInterface::SetDiscInside(VolumeHandler::IsValid());
|
||||||
dvdMem.CoverReg.CVRINT = 0;
|
SetLidOpen(false);
|
||||||
dvdMem.CoverReg.CVRINTMASK = 0;
|
|
||||||
dvdMem.CoverReg.CVR = 0;
|
|
||||||
UpdateInterrupts();
|
|
||||||
}
|
}
|
||||||
void SetLidOpen(bool _bOpen)
|
void SetLidOpen(bool _bOpen)
|
||||||
{
|
{
|
||||||
|
@ -348,8 +340,8 @@ void Write32(const u32 _iValue, const u32 _iAddress)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
//case DI_COVER_REGISTER:
|
case DI_COVER_REGISTER:
|
||||||
// {
|
{
|
||||||
// UDICVR tmpCoverReg(_iValue);
|
// UDICVR tmpCoverReg(_iValue);
|
||||||
|
|
||||||
// dvdMem.CoverReg.CVR = 0;
|
// dvdMem.CoverReg.CVR = 0;
|
||||||
|
@ -359,8 +351,8 @@ void Write32(const u32 _iValue, const u32 _iAddress)
|
||||||
// UpdateInterrupts();
|
// UpdateInterrupts();
|
||||||
|
|
||||||
// _dbg_assert_(DVDINTERFACE, (tmpCoverReg.CVR == 0));
|
// _dbg_assert_(DVDINTERFACE, (tmpCoverReg.CVR == 0));
|
||||||
// }
|
}
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
case DI_COMMAND_0: dvdMem.Command[0] = _iValue; break;
|
case DI_COMMAND_0: dvdMem.Command[0] = _iValue; break;
|
||||||
case DI_COMMAND_1: dvdMem.Command[1] = _iValue; break;
|
case DI_COMMAND_1: dvdMem.Command[1] = _iValue; break;
|
||||||
|
|
Loading…
Reference in New Issue