Fixed recursive death bug for new commandline feature -- confirmed that HDV/2MG disks can be inserted via CMD options now.

This commit is contained in:
Brendan Robert 2016-05-22 16:25:42 -05:00
parent 7668e723ec
commit e6594514ef

View File

@ -139,8 +139,8 @@ public class CardMassStorage extends Card implements MediaConsumerParent {
if (disk1 != null && !disk1.isEmpty()) {
try {
MediaEntry entry = MediaCache.getMediaFromFile(new File(disk1));
drive1.insertMedia(entry, entry.files.get(0));
disk1 = null;
drive1.insertMedia(entry, entry.files.get(0));
} catch (IOException ex) {
Logger.getLogger(CardMassStorage.class.getName()).log(Level.SEVERE, null, ex);
}
@ -148,8 +148,8 @@ public class CardMassStorage extends Card implements MediaConsumerParent {
if (disk2 != null && !disk2.isEmpty()) {
try {
MediaEntry entry = MediaCache.getMediaFromFile(new File(disk2));
drive2.insertMedia(entry, entry.files.get(0));
disk2 = null;
drive2.insertMedia(entry, entry.files.get(0));
} catch (IOException ex) {
Logger.getLogger(CardMassStorage.class.getName()).log(Level.SEVERE, null, ex);
}