Skip to content

Commit

Permalink
Merge Mark 'ScriptContext' as internal. (mr-607)
Browse files Browse the repository at this point in the history
  • Loading branch information
neptunium-cfx committed Nov 25, 2024
2 parents 75284d6 + 089ce39 commit 8082b0b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/client/clrcore/ScriptContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

namespace CitizenFX.Core
{
public static class ScriptContext
internal static class ScriptContext
{
private static readonly ConcurrentQueue<Action> ms_finalizers = new ConcurrentQueue<Action>();

Expand Down Expand Up @@ -55,7 +55,7 @@ private static void InternalReset()
}

[SecuritySafeCritical]
public static void Push(object arg)
internal static void Push(object arg)
{
PushInternal(arg);
}
Expand Down Expand Up @@ -219,13 +219,13 @@ private static void Free(IntPtr ptr)
}

[SecuritySafeCritical]
public static T GetResult<T>()
internal static T GetResult<T>()
{
return (T)GetResult(typeof(T));
}

[SecuritySafeCritical]
public static object GetResult(Type type)
internal static object GetResult(Type type)
{
return GetResultHelper(type);
}
Expand Down Expand Up @@ -313,7 +313,7 @@ internal unsafe static object GetResult(Type type, byte* ptr)

return null;
}

[SecurityCritical]
private static unsafe object GetResultInternal(Type type, byte* ptr)
{
Expand Down Expand Up @@ -464,7 +464,7 @@ internal unsafe static void CopyReferencedParametersOut(ContextType* cxt)
uint result = 0;
long a1 = (long)cxt;

for (; *(uint*)(a1 + 24) != 0; *(uint*)(*(ulong*)(a1 + 8 * *(int *)(a1 + 24) + 32) + 16) = result)
for (; *(uint*)(a1 + 24) != 0; *(uint*)(*(ulong*)(a1 + 8 * *(int*)(a1 + 24) + 32) + 16) = result)
{
--*(uint*)(a1 + 24);
**(uint**)(a1 + 8 * *(int*)(a1 + 24) + 32) = *(uint*)(a1 + 16 * (*(int*)(a1 + 24) + 4));
Expand Down

0 comments on commit 8082b0b

Please sign in to comment.