Examples of ROM


Examples of org.javatari.atari.cartridge.ROM

    }
    return null;
  }

  private static Cartridge createCartridge(InputStream stream, String romURL, boolean provided) throws IOException, ROMFormatUnsupportedException {
    ROM rom = createROM(stream, romURL);
    if (provided) CartridgeDatabase.adjustInfoOfROMProvided(rom);
    return CartridgeCreator.create(rom);
  }
View Full Code Here

Examples of org.javatari.atari.cartridge.ROM

      int read = stream.read(buffer, totalRead, MAX_STREAM_SIZE - totalRead);
      if (read == -1) break// End of Stream
      totalRead += read;
    } while(totalRead < MAX_STREAM_SIZE);
    byte[] content = (totalRead > 0) ? Arrays.copyOf(buffer, totalRead) : new byte[0];
    return new ROM(romURL.trim(), content);
  }
View Full Code Here

Examples of org.javatari.atari.cartridge.ROM

      byteStream.flush();
      ObjectOutputStream objStream = new ObjectOutputStream(byteStream);
      objStream.writeObject(state);
      objStream.flush();
      byte[] content = byteStream.toByteArray();
      ROM rom = new ROM("CreatedSavestate", content);
      return new CartridgeSavestate(rom);
    } catch (Exception ex) {
      // IO errors
      ex.printStackTrace();
      return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.