+ implemented TOmfObjInput.CanReadObjData

git-svn-id: trunk@30864 -
This commit is contained in:
nickysn 2015-05-15 22:23:30 +00:00
parent 91d3cb1cd0
commit 29a1c74e34

View File

@ -121,6 +121,7 @@ interface
TOmfObjInput = class(TObjInput)
constructor create;override;
class function CanReadObjData(AReader:TObjectreader):boolean;override;
end;
{ TMZExeOutput }
@ -890,6 +891,20 @@ implementation
cobjdata:=TOmfObjData;
end;
class function TOmfObjInput.CanReadObjData(AReader: TObjectreader): boolean;
var
b: Byte;
begin
result:=false;
if AReader.Read(b,sizeof(b)) then
begin
if b=RT_THEADR then
{ TODO: check additional fields }
result:=true;
end;
AReader.Seek(0);
end;
{****************************************************************************
TMZExeOutput
****************************************************************************}