mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-03 16:05:31 +00:00
Inverted unclear check and changed it check the dllimport option directly.
This commit is contained in:
parent
77ebecb9f7
commit
4184e6a10e
|
@ -302,7 +302,12 @@ namespace OpenTK.Rewrite
|
|||
generatedVariables = EmitConvenienceWrapper(wrapper, native, difference, body, il);
|
||||
}
|
||||
|
||||
if (slot != -1)
|
||||
if (Options.UseDLLImport)
|
||||
{
|
||||
// issue DllImport call
|
||||
EmitCall(il, native);
|
||||
}
|
||||
else
|
||||
{
|
||||
// push the entry point address on the stack
|
||||
EmitEntryPoint(entry_points, il, slot);
|
||||
|
@ -310,11 +315,6 @@ namespace OpenTK.Rewrite
|
|||
// issue calli
|
||||
EmitCalli(il, native);
|
||||
}
|
||||
else
|
||||
{
|
||||
// issue DllImport call
|
||||
EmitCall(il, native);
|
||||
}
|
||||
|
||||
if (wrapper.ReturnType.Name != "Void")
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue