Package org.javatari.atari.console

Examples of org.javatari.atari.console.Console$CartridgeSocketAdapter


    }
  }

  protected Console buildAndPlugStandaloneConsole() {
    if (standaloneConsole != null) throw new IllegalStateException();
    standaloneConsole = new Console();
    plugConsole(standaloneConsole);
    return standaloneConsole;
  }
View Full Code Here


  private void romFormatLbAction() {
    Object sel = romFormatLb.getSelectedValue();
    if (sel == null || !(sel instanceof CartridgeFormat)) return;
    CartridgeFormat format = (CartridgeFormat) sel;
    Console console = room.currentConsole();
    Cartridge cart = console.cartridgeSocket().inserted();
    if (cart == null || cart.format().equals(format)) return;
    Cartridge newCart = format.createCartridge(cart.rom());
    console.cartridgeSocket().insert(newCart, true);
  }
View Full Code Here

    Cartridge newCart = format.createCartridge(cart.rom());
    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.console.Console$CartridgeSocketAdapter

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.