Detect-It-Easy/db/MACH/Delphi.3.sg
2014-07-10 09:38:26 +02:00

22 lines
No EOL
603 B
Text

// DIE's signature file
init("compiler","Delphi");
function detect(bShowType,bShowVersion,bShowOptions)
{
var nSection=MACH.getSectionNumber("__rodata");
if(nSection!=-1)
{
var nSectionOffset=MACH.getSectionFileOffset(nSection);
var nSectionSize=MACH.getSectionFileSize(nSection);
var nOffset=MACH.findSignature(nSectionOffset,nSectionSize,"'TObject'");
if(nOffset!=-1)
{
sName="Embarcadero Delphi";
sVersion="XE2-XE6"
bDetected=1;
}
}
return result(bShowType,bShowVersion,bShowOptions);
}