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();
}