added SHR

This commit is contained in:
Denis Molony 2020-06-23 16:07:11 +10:00
parent 96badbeff3
commit 760ea2246e
2 changed files with 7 additions and 1 deletions

View File

@ -19,7 +19,7 @@ public class ExoBuffer
private static int PFLAG_BITS_ALIGN_START = (1 << PBIT_BITS_ALIGN_START);
private static int PFLAG_4_OFFSET_TABLES = (1 << PBIT_4_OFFSET_TABLES);
byte[] outBuffer = new byte[16384];
byte[] outBuffer = new byte[50000];
// ---------------------------------------------------------------------------------//
public ExoBuffer (byte[] inBuffer)

View File

@ -330,6 +330,12 @@ class FileEntry extends CatalogEntry implements ProdosConstants
else
file = new AssemblerProgram (name, exactBuffer, auxType);
}
else if (auxType == 0x1FF8 && HiResImage.isExo (exactBuffer))
{
ExoBuffer exoBuffer = new ExoBuffer (exactBuffer);
byte[] outBuffer = exoBuffer.getExpandedBuffer ();
file = new SHRPictureFile2 (name, outBuffer, FILE_TYPE_PIC, 0x2000, 0x8000);
}
else if (oneOf (endOfFile, 0x1FF8, 0x1FFF, 0x2000, 0x4000)
&& oneOf (auxType, 0x1FFF, 0x2000, 0x4000, 0x6000))
file = new OriginalHiResImage (name, exactBuffer, auxType);