Sorry to bother, just is pretty much useless at the moment, but I was wondering if someone can point me to the code responsible for the disk image format detection in the ZX-Spectrum core? The part I am unable to understand is how the core distinguishes IMG and MGT formats. There is bit of background here.
There is something that looks like TR-DOS related disk handling in the main MiSTer binary, which is probably irrelevant, and ZX-Spectrum's wd1792.sv has potentially relevant comment "0 = Track-Side-Sector, 1 - Side-Track-Sector". The latter looks promising, I am unable to understand how exactly that is supposed to work. Any help appreciated.
Thanks.