Skip to content

Commit

Permalink
Attempt to fix Compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine committed Feb 3, 2025
1 parent 972cf0c commit c325cb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MelonLoader.Bootstrap/Proxy/ProxyResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private static bool LoadModuleFromSystemCopy(string fileName, ref nint handle)
return LoadModule(filePath, ref handle);
}

internal static bool LoadModule(string filePath, ref nint handle)
private static bool LoadModule(string filePath, ref nint handle)
{
if (!File.Exists(filePath))
return false;
Expand Down
9 changes: 9 additions & 0 deletions MelonLoader.Bootstrap/SharedDelegates.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ namespace MelonLoader.Bootstrap;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal unsafe delegate void LogMelonInfoFn(ColorRGB* nameColor, char* name, int nameLength, char* info, int infoLength);

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate nint PtrRetFn();

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate nint CastManagedAssemblyPtrFn(nint ptr);

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
internal delegate void ActionFn();

[UnmanagedFunctionPointer(CallingConvention.StdCall)]
[return: MarshalAs(UnmanagedType.U1)]
internal delegate bool BoolRetFn();
Expand Down

0 comments on commit c325cb4

Please sign in to comment.