+ implemented TOmfLibObjectReader.openfile

git-svn-id: trunk@30773 -
This commit is contained in:
nickysn 2015-05-03 10:56:09 +00:00
parent 3b56a5a767
commit 7849ffecf7

View File

@ -426,8 +426,16 @@ implementation
end;
function TOmfLibObjectReader.openfile(const fn: string): boolean;
var
libsym: TOmfLibDictionaryEntry;
begin
Result:=inherited openfile(fn);
result:=false;
libsym:=TOmfLibDictionaryEntry(LibSymbols.Find(ModName2DictEntry(fn)));
if not assigned(libsym) then
exit;
CurrMemberPos:=libsym.PageNum*FPageSize;
inherited Seek(CurrMemberPos);
result:=true;
end;
procedure TOmfLibObjectReader.closefile;