forked from Apple-2-Tools/jace
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:
parent
7668e723ec
commit
e6594514ef
@ -139,8 +139,8 @@ public class CardMassStorage extends Card implements MediaConsumerParent {
|
|||||||
if (disk1 != null && !disk1.isEmpty()) {
|
if (disk1 != null && !disk1.isEmpty()) {
|
||||||
try {
|
try {
|
||||||
MediaEntry entry = MediaCache.getMediaFromFile(new File(disk1));
|
MediaEntry entry = MediaCache.getMediaFromFile(new File(disk1));
|
||||||
drive1.insertMedia(entry, entry.files.get(0));
|
|
||||||
disk1 = null;
|
disk1 = null;
|
||||||
|
drive1.insertMedia(entry, entry.files.get(0));
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Logger.getLogger(CardMassStorage.class.getName()).log(Level.SEVERE, null, 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()) {
|
if (disk2 != null && !disk2.isEmpty()) {
|
||||||
try {
|
try {
|
||||||
MediaEntry entry = MediaCache.getMediaFromFile(new File(disk2));
|
MediaEntry entry = MediaCache.getMediaFromFile(new File(disk2));
|
||||||
drive2.insertMedia(entry, entry.files.get(0));
|
|
||||||
disk2 = null;
|
disk2 = null;
|
||||||
|
drive2.insertMedia(entry, entry.files.get(0));
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Logger.getLogger(CardMassStorage.class.getName()).log(Level.SEVERE, null, ex);
|
Logger.getLogger(CardMassStorage.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user