Esempio n. 1
0
void mountUmdImage( char * file )
{
	switch ( mode )
	{
		case MODE_UMD:
		{
			mountUmdFromFile( file, 0, 0 );
			break;
		}
		case MODE_OE_LEGACY:
		{
			mountUmdFromFile( file, 1, 1 );
			break;
		}
		case MODE_MARCH33:
		{
			setInitApitype( 0x120 );
			setInitFileName( file );
			setUmdFile( file );
			loadStartModule( "flash0:/kd/march33.prx", 0, NULL );
			loadStartModule( "flash0:/kd/isofs.prx", 0, NULL );
			break;
		}
		case MODE_NP9660:
		{
			setInitApitype( 0x120 );
			setInitFileName( file );
			setUmdFile( file );
			loadStartModule( "flash0:/kd/mgr.prx", 0, NULL );
			loadStartModule( "flash0:/kd/npdrm.prx", 0, NULL );
			loadStartModule( "flash0:/kd/galaxy.prx", 0, NULL );
			loadStartModule( "flash0:/kd/np9660.prx", 0, NULL );
			loadStartModule( "flash0:/kd/isofs.prx", 0, NULL );
			break;
		}
	}
	int stat = sceUmdCheckMedium();
	if ( stat == 0 )
	{
		log( "no media\n" );
		sceUmdWaitDriveStat( UMD_WAITFORDISC );
	}
	sceUmdActivate( 1, "disc0:" );
	sceUmdWaitDriveStat( UMD_WAITFORINIT );
}
Esempio n. 2
0
int uxdisc_waitfordisc() {
	#if defined(PSP)
		if (uxdisc_check() == false) { sceUmdWaitDriveStat(PSP_UMD_PRESENT); }
	#endif
	return 0;
}