From 0caa8011e1b05a0a8fdced9ce7c774298b154d29 Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Thu, 3 Jun 2004 03:11:24 +0000 Subject: [PATCH] Added changeImageOrder. --- .../applecommander/storage/cpm/CpmFormatDisk.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/com/webcodepro/applecommander/storage/cpm/CpmFormatDisk.java b/src/com/webcodepro/applecommander/storage/cpm/CpmFormatDisk.java index fd8bbf0..a07dae6 100644 --- a/src/com/webcodepro/applecommander/storage/cpm/CpmFormatDisk.java +++ b/src/com/webcodepro/applecommander/storage/cpm/CpmFormatDisk.java @@ -23,6 +23,7 @@ import com.webcodepro.applecommander.storage.DiskFullException; import com.webcodepro.applecommander.storage.FileEntry; import com.webcodepro.applecommander.storage.FormattedDisk; import com.webcodepro.applecommander.storage.physical.ImageOrder; +import com.webcodepro.applecommander.util.AppleUtil; import java.util.ArrayList; import java.util.HashMap; @@ -496,4 +497,15 @@ public class CpmFormatDisk extends FormattedDisk { public boolean supportsDiskMap() { 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); + } }