mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-21 17:29:55 +00:00
First item in catalog is OS, use it for disk name
This commit is contained in:
parent
2515c3f861
commit
94bf05b57d
@ -193,6 +193,10 @@ public class RdosFormatDisk extends FormattedDisk {
|
|||||||
* RDOS really does not have a disk name. Fake one.
|
* RDOS really does not have a disk name. Fake one.
|
||||||
*/
|
*/
|
||||||
public String getDiskName() {
|
public String getDiskName() {
|
||||||
|
if (getImageOrder() instanceof ProdosOrder) {
|
||||||
|
byte[] block = readSector(1, 0x0);
|
||||||
|
return AppleUtil.getString(block, 0x0, 0x18);
|
||||||
|
}
|
||||||
byte[] block = readRdosBlock(4);
|
byte[] block = readRdosBlock(4);
|
||||||
return AppleUtil.getString(block, 0xe0, 0x20);
|
return AppleUtil.getString(block, 0xe0, 0x20);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user