mirror of
https://github.com/moparisthebest/Simba
synced 2024-11-25 18:52:15 -05:00
Changed calling convention to safecall, can anyone confirm that arrays in results work now?
This commit is contained in:
parent
f08e191344
commit
6f757f3a78
@ -223,7 +223,7 @@ uses
|
||||
{$ifdef PS_StdCall}
|
||||
{$define extdecl := stdcall}
|
||||
{$else}
|
||||
{$define extdecl := REGISTER}
|
||||
{$define extdecl := safecall}
|
||||
{$endif}
|
||||
|
||||
{Some General PS Functions here}
|
||||
@ -613,7 +613,7 @@ begin
|
||||
for i := 0 to high(ExportedMethods) do
|
||||
if ExportedMethods[i].FuncPtr <> nil then
|
||||
Sender.AddFunctionEx(ExportedMethods[i].FuncPtr,ExportedMethods[i].FuncDecl,
|
||||
{$ifdef PS_StdCall}cdStdCall{$else}cdRegister {$endif});
|
||||
{$ifdef PS_StdCall}cdStdCall{$else}cdSafeCall{$endif});
|
||||
end;
|
||||
|
||||
function TPSThread.RequireFile(Sender: TObject;
|
||||
|
Loading…
Reference in New Issue
Block a user