private boolean loadUnpackedUMD(String filename) throws IOException, GeneralJpcspException {
  if (doUmdBuffering) {
    return false;
  }
  File file=new File(filename);
  if (file.exists()) {
    RandomAccessFile raf=new RandomAccessFile(file,"r");
    FileChannel roChannel=raf.getChannel();
    ByteBuffer readbuffer=roChannel.map(FileChannel.MapMode.READ_ONLY,0,(int)roChannel.size());
    emulator.load("disc0:/PSP_GAME/SYSDIR/EBOOT.BIN",readbuffer);
    raf.close();
    log.info("Using unpacked UMD EBOOT.BIN image");
    return true;
  }
  return false;
}

private boolean loadUnpackedUMD ( String filename ) throws IOException , GeneralJpcspException { if ( doUmdBuffering ) { return false ; } File file = new File ( filename ) ; if ( file . exists ( ) ) { RandomAccessFile raf = new RandomAccessFile ( file , "r" ) ; FileChannel roChannel = raf . getChannel ( ) ; ByteBuffer readbuffer = roChannel . map ( FileChannel . MapMode . READ_ONLY , 0 , ( int ) roChannel . size ( ) ) ; emulator . load ( "disc0:/PSP_GAME/SYSDIR/EBOOT.BIN" , readbuffer ) ; raf . close ( ) ; log . info ( "Using unpacked UMD EBOOT.BIN image" ) ; return true ; } return false ; }
don ' t call this directly , see loadumd ( file file )
