int uxdisc_check() { #if defined(PSP) return (sceUmdCheckMedium() != 0); #else return false; #endif }
void printUmdInfo() { int present = sceUmdCheckMedium(0); int error = sceUmdGetErrorStat(); int stat = sceUmdGetDriveStat(); printf("[%02d] umd present=%d error=%08x stat=%02x\n", printUmdInfoCount, present, error, stat); printUmdInfoCount++; referThread(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 ); }