sinclairql: also have a function which returns a pointer directly to the QLstring job name

git-svn-id: trunk@49191 -
This commit is contained in:
Károly Balogh 2021-04-12 12:21:25 +00:00
parent 3280ec3220
commit 8128736233

View File

@ -72,6 +72,7 @@ var
function SetQLJobName(const s: string): longint;
function GetQLJobName: string;
function GetQLJobNamePtr: pointer;
implementation
@ -252,6 +253,14 @@ begin
end;
end;
function GetQLJobNamePtr: pointer;
begin
GetQLJobNamePtr:=nil;
if pword(@start_proc)[3] = $4afb then
begin
GetQLJobNamePtr:=@pword(@start_proc)[4];
end;
end;
{*****************************************************************************
System Dependent Entry code