This commit is contained in:
Denis Molony 2018-10-01 19:34:38 +10:00
parent aa911ee543
commit 70e529ac10
4 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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));
}
// ---------------------------------------------------------------------------------//

View File

@ -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 ();
}
}