mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-02 12:41:32 +00:00
Changed disk creation to use a create method, as this is better
suited to disks that support mutiple logical disks.
This commit is contained in:
parent
9170e98435
commit
10d7b000d1
|
@ -93,12 +93,15 @@ public class PascalFormatDisk extends FormattedDisk {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for PascalFormatDisk.
|
* Create a PascalFormatDisk.
|
||||||
* @param filename
|
|
||||||
*/
|
*/
|
||||||
public PascalFormatDisk(String filename, String volumeName) {
|
public static PascalFormatDisk[] create(String filename, String volumeName,
|
||||||
super(filename, new byte[APPLE_140KB_DISK]);
|
int size) {
|
||||||
setDiskName(volumeName);
|
|
||||||
|
PascalFormatDisk disk = new PascalFormatDisk(filename, new byte[size]);
|
||||||
|
disk.setDiskName(volumeName);
|
||||||
|
disk.format();
|
||||||
|
return new PascalFormatDisk[] { disk };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -121,12 +121,13 @@ public class RdosFormatDisk extends FormattedDisk {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor for RdosFormatDisk.
|
* Create a RdosFormatDisk.
|
||||||
* @param filename
|
|
||||||
* @param diskImage
|
|
||||||
*/
|
*/
|
||||||
public RdosFormatDisk(String filename) {
|
public static RdosFormatDisk[] create(String filename) {
|
||||||
super(filename, new byte[APPLE_140KB_DISK]);
|
RdosFormatDisk disk =
|
||||||
|
new RdosFormatDisk(filename, new byte[APPLE_140KB_DISK]);
|
||||||
|
disk.format();
|
||||||
|
return new RdosFormatDisk[] { disk };
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user