diff options
| author | Maarten ter Huurne <maarten@treewalker.org> | 2008-08-26 10:20:41 +0000 |
|---|---|---|
| committer | Maarten ter Huurne <maarten@treewalker.org> | 2008-08-26 10:20:41 +0000 |
| commit | fdf02ce331e193b781df7499be3cce3cb38dda43 (patch) | |
| tree | d244cb7410986a8438e2c2ab2cd43046e1c690a1 | |
| parent | afced1fa98742a34e5cdb4fe309e6d48f90f981e (diff) | |
Allow 32-bit writes to the VI: although this is officially not allowed, the hardware seems to accept it (for example, DesktopMan GC Tetris uses it).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@320 8ced0084-cf51-0410-be5f-012b33b47a6e
| -rw-r--r-- | Source/Core/Core/Src/HW/VideoInterface.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/Core/Src/HW/VideoInterface.cpp b/Source/Core/Core/Src/HW/VideoInterface.cpp index 96cad98a6f..8d52dfaf99 100644 --- a/Source/Core/Core/Src/HW/VideoInterface.cpp +++ b/Source/Core/Core/Src/HW/VideoInterface.cpp @@ -282,9 +282,10 @@ void Write32(const u32 _iValue, const u32 _iAddress) m_FrameBuffer2 = _iValue;
break;
- default:
- PanicAlert("VI unknown write32 %08x to %08x", _iValue, _iAddress);
- break;
+ default:
+ Write16(_iValue >> 16, _iAddress);
+ Write16(_iValue & 0xFFFF, _iAddress + 2);
+ break;
}
}
|
