diff --git a/LemonUI/Scaleform/BaseScaleform.cs b/LemonUI/Scaleform/BaseScaleform.cs index 4675aa5..9ee859e 100644 --- a/LemonUI/Scaleform/BaseScaleform.cs +++ b/LemonUI/Scaleform/BaseScaleform.cs @@ -419,9 +419,9 @@ public void Dispose() NativeFunction.CallByHash(0x6DD8F5AA635EB4B2, idPtr); } #elif SHVDN3 || SHVDNC - using (OutputArgument idPtr = new OutputArgument(id)) + unsafe { - Function.Call(Hash.SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED, idPtr); + Function.Call(Hash.SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED, &id); } #endif } diff --git a/LemonUI/Tools/SafeZone.cs b/LemonUI/Tools/SafeZone.cs index 4ddfa8d..e78b3cc 100644 --- a/LemonUI/Tools/SafeZone.cs +++ b/LemonUI/Tools/SafeZone.cs @@ -123,12 +123,9 @@ public static PointF GetSafePosition(float x, float y) realY = argY.GetValue(); } #elif SHVDN3 || SHVDNC - using (OutputArgument argX = new OutputArgument()) - using (OutputArgument argY = new OutputArgument()) + unsafe { - Function.Call((Hash)0x6DD8F5AA635EB4B2, relativeX, relativeY, argX, argY); // _GET_SCRIPT_GFX_POSITION - realX = argX.GetResult(); - realY = argY.GetResult(); + Function.Call(Hash.GET_SCRIPT_GFX_ALIGN_POSITION, relativeX, relativeY, &realX, &realY); } #endif