We are still looking for competent contributors (JPN and 480p results especially)
for our compatibility list ( http://crediar.no-ip.com/gc ) Please come to #DM on efnet if you want to help! updated DM to version 2.2 *Added code to prevent drives going into sleep mode git-svn-id: svn://localhost/Users/andi/Downloads/code/trunk@19 be6c1b03-d731-4111-a574-e37d80d43941
This commit is contained in:
parent
07f92c2489
commit
772f3001ac
13
dip.c
13
dip.c
@ -44,6 +44,8 @@ void DIInit( void )
|
||||
|
||||
write32( DI_SCONFIG, 0xFF );
|
||||
write32( DI_SCOVER, 0 );
|
||||
|
||||
write32( HW_TIMER, 0 );
|
||||
}
|
||||
u32 DIUpdateRegisters( void )
|
||||
{
|
||||
@ -307,7 +309,9 @@ u32 DIUpdateRegisters( void )
|
||||
write32( HW_ARMIRQFLAG, read32(HW_ARMIRQFLAG) );
|
||||
set32( 0x0d80000C, (1<<2) );
|
||||
}
|
||||
|
||||
|
||||
write32( HW_TIMER, 0 );
|
||||
|
||||
} break;
|
||||
default:
|
||||
{
|
||||
@ -326,5 +330,12 @@ u32 DIUpdateRegisters( void )
|
||||
}
|
||||
}
|
||||
|
||||
if( (u64)read32(HW_TIMER) >= 2 * 60 * 243000000LL / 128 )
|
||||
{
|
||||
USBStorage_Read_Sectors( 23, 1, (void*)0x1000 );
|
||||
|
||||
write32( HW_TIMER, 0 );
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
1
dip.h
1
dip.h
@ -13,6 +13,7 @@
|
||||
#include "Config.h"
|
||||
#include "DVD.h"
|
||||
#include "elf.h"
|
||||
#include "usbstorage.h"
|
||||
|
||||
enum opcodes
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user