Added MiNT executable detection.

This commit is contained in:
2018-02-26 19:14:02 +00:00
parent 3ecb5a4c8f
commit 7e3a0d65bb
3 changed files with 4 additions and 2 deletions

View File

@@ -74,7 +74,8 @@ namespace libexeinfo
public bool Recognized { get; private set; }
public string Type { get; private set; }
public IEnumerable<Architecture> Architectures => new[] {Architecture.M68K};
public OperatingSystem RequiredOperatingSystem => new OperatingSystem {Name = "Atari TOS"};
public OperatingSystem RequiredOperatingSystem =>
new OperatingSystem {Name = Header.mint == MINT_SIGNATURE ? "MiNT" : "Atari TOS"};
void Initialize()
{

View File

@@ -29,5 +29,6 @@ namespace libexeinfo
public partial class AtariST
{
const ushort SIGNATURE = 0x601A;
const uint MINT_SIGNATURE = 0x4D694E54;
}
}

View File

@@ -38,7 +38,7 @@ namespace libexeinfo
public uint data_len;
public uint bss_len;
public uint symb_len;
public uint reserved;
public uint mint;
public uint flags;
public ushort absflags;
}