Package org.javatari.atari.cartridge

Examples of org.javatari.atari.cartridge.Cartridge


    console.cartridgeSocket().insert(newCart, true);
  }
 
  private void cartridgeAutoDetect() {
    Console console = room.currentConsole();
    Cartridge cart = console.cartridgeSocket().inserted();
    if (cart == null) return;
    ArrayList<CartridgeFormatOption> options;
    try {
      options = CartridgeDatabase.getFormatOptions(cart.rom());
    } catch (ROMFormatUnsupportedException e) {
      return;
    }
    Cartridge newCart = options.get(0).format.createCartridge(cart.rom());
    console.cartridgeSocket().insert(newCart, true);
    refreshCartridge();
  }
View Full Code Here

TOP

Related Classes of org.javatari.atari.cartridge.Cartridge

Copyright © 2018 www.massapicom. 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.