Re: [hatari-devel] STX header magic (was: hatari-ui icon |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi Nicolas,
Am Fri, 14 Nov 2014 23:54:10 +0100
schrieb Nicolas Pomarède <npomarede@xxxxxxxxxxxx>:
> Le 14/11/2014 20:56, Thomas Huth a écrit :
>
> >> Hatari MUST be
> >> able to determine if a file is acceptable by inspecting the file
> >> data before using it.
> >
> > At least the MSA code checks for the right header magic value. Not
> > sure for STX, maybe Nicolas can answer that question. Concerning .ST
> > disk images, there is no header that can be checked, so the file
> > extension is the only thing you can rely on here.
> >
>
> All STX files start with the 4 bytes header "RSY\0"
I just had a look at floppy_stx.c and I did not spot a check for the
right header magic there. Is this still missing?
Thomas