mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-11-29 11:49:29 +00:00
tidying
This commit is contained in:
parent
aa911ee543
commit
70e529ac10
@ -436,6 +436,8 @@ public abstract class HiResImage extends AbstractFile
|
||||
}
|
||||
}
|
||||
|
||||
// http://commandlinefanatic.com/cgi-bin/showarticle.cgi?article=art011
|
||||
// https://www.w3.org/Graphics/GIF/spec-gif89a.txt
|
||||
public static boolean isGif (byte[] buffer)
|
||||
{
|
||||
if (buffer.length < 6)
|
||||
|
@ -15,6 +15,9 @@ import com.bytezone.diskbrowser.disk.*;
|
||||
import com.bytezone.diskbrowser.gui.DataSource;
|
||||
import com.bytezone.diskbrowser.utilities.HexFormatter;
|
||||
|
||||
// https://mud.co.uk/richard/htflpism.htm
|
||||
// https://inform-fiction.org/zmachine/standards/
|
||||
|
||||
public class InfocomDisk extends AbstractFormattedDisk
|
||||
{
|
||||
private static final int BLOCK_SIZE = 256;
|
||||
|
@ -7,7 +7,6 @@ import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.bytezone.diskbrowser.utilities.HexFormatter;
|
||||
import com.bytezone.diskbrowser.utilities.Utility;
|
||||
|
||||
public class WozFile
|
||||
@ -176,7 +175,7 @@ public class WozFile
|
||||
NibbleTrack nibbleTrack = mc3470.getNibbleTrack (buffer, ptr, bytesUsed, bitCount);
|
||||
nibbleTracks.add (nibbleTrack);
|
||||
}
|
||||
System.out.println (HexFormatter.format (nibbleTracks.get (2).buffer));
|
||||
// System.out.println (HexFormatter.format (nibbleTracks.get (2).buffer));
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------//
|
||||
|
@ -197,7 +197,7 @@ class ProdosCatalogSector extends AbstractSector
|
||||
{
|
||||
StringBuilder text = new StringBuilder ();
|
||||
for (int i = offset, max = offset + 15; i < max && buffer[i] != 0; i++)
|
||||
text.append ((char) buffer[i] & 0xFF);
|
||||
text.append ((char) (buffer[i] & 0xFF));
|
||||
return text.toString ();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user