mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 23:29:34 +00:00
Added changeImageOrder.
This commit is contained in:
parent
557179b32f
commit
0caa8011e1
@ -23,6 +23,7 @@ import com.webcodepro.applecommander.storage.DiskFullException;
|
|||||||
import com.webcodepro.applecommander.storage.FileEntry;
|
import com.webcodepro.applecommander.storage.FileEntry;
|
||||||
import com.webcodepro.applecommander.storage.FormattedDisk;
|
import com.webcodepro.applecommander.storage.FormattedDisk;
|
||||||
import com.webcodepro.applecommander.storage.physical.ImageOrder;
|
import com.webcodepro.applecommander.storage.physical.ImageOrder;
|
||||||
|
import com.webcodepro.applecommander.util.AppleUtil;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -496,4 +497,15 @@ public class CpmFormatDisk extends FormattedDisk {
|
|||||||
public boolean supportsDiskMap() {
|
public boolean supportsDiskMap() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Change to a different ImageOrder. Remains in CP/M format but
|
||||||
|
* the underlying order can chage.
|
||||||
|
* @see ImageOrder
|
||||||
|
*/
|
||||||
|
public void changeImageOrder(ImageOrder imageOrder) {
|
||||||
|
AppleUtil.changeImageOrderByTrackAndSector(getImageOrder(), imageOrder);
|
||||||
|
setImageOrder(imageOrder);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user