Home  /  Autodocs  /  trackfile.device

NAME

TFExamineFileSize
Return the trackdisk.device drive type associated with the size of an Amiga disk image file.

SYNOPSIS

type = TFExamineFileSize(file_size)
D0 D0

LONG TFExamineFileSize(LONG file_size);

FUNCTION

Check if a disk image file represents a supported 3.5" or 5.25" Amiga floppy disk by checking its size.

INPUTS

file_size
Size of the Amiga disk image file in bytes.

RESULT

type
If the file size is matches one of the supported Amiga floppy disk format DRIVE3_5 (3.5" 80 track double density disk), DRIVE5_25 (5.25" 40 track disk) or DRIVE3_5_150RPM (3.5" 80 track high density disk) will be returned. Otherwise -1 will be returned.

NOTES

5.25" floppy disk images are not currently supported.

SEE ALSO

<devices/trackdisk.h>