Addressing Black screen in Descent II: Destination Quartzon 3dfx OEM with Voodoo #238
This commit is contained in:
parent
995e8fb6c6
commit
437ddc96fc
@ -1004,9 +1004,12 @@ void bx_voodoo_1_2_c::after_restore_state(void)
|
||||
bool bx_voodoo_1_2_c::mem_read_handler(bx_phy_address addr, unsigned len,
|
||||
void *data, void *param)
|
||||
{
|
||||
Bit32u *data_ptr = (Bit32u*)data;
|
||||
Bit32u val = voodoo_r((addr>>2) & 0x3FFFFF);
|
||||
if (len == 4)
|
||||
*(Bit32u*)data = val;
|
||||
else if (len == 1)
|
||||
*(Bit8u*)data = val >> ((addr & 3) * 8);
|
||||
|
||||
*data_ptr = voodoo_r((addr>>2) & 0x3FFFFF);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user