Skip to content

Commit

Permalink
7thWrapperLib,7thWrapperProxy: Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
julianxhokaxhiu committed Nov 29, 2022
1 parent 4f28405 commit 62866a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions 7thWrapperLib/VFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,6 @@ out newentries
}

class VArchiveData {
[DllImport("msvcrt.dll", EntryPoint = "memcpy", CallingConvention = CallingConvention.Cdecl, SetLastError = false)]
public static extern IntPtr memcpy(IntPtr dest, IntPtr src, uint count);

private long _position, _size;
private byte[] _data;

Expand Down
6 changes: 3 additions & 3 deletions 7thWrapperProxy/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static unsafe class Proxy
private static Type? t;

[StructLayout(LayoutKind.Sequential)]
public unsafe struct HostExports
public struct HostExports
{
public delegate* unmanaged<ushort*, uint, uint, void*, uint, uint, void*, void*> CreateFileW;
public delegate* unmanaged<void*, void*, uint, uint*, void*, int> ReadFile;
Expand All @@ -26,10 +26,10 @@ public unsafe struct HostExports
public delegate* unmanaged<void*, int*, int> GetFileSizeEx;
}

private static unsafe HostExports* _exports;
private static HostExports* _exports;

[UnmanagedCallersOnly]
public unsafe static int Main(void* exports)
public static int Main(void* exports)
{
try
{
Expand Down

0 comments on commit 62866a1

Please sign in to comment.