Move SDL3 binding to NuGet package (#6184)

I'm worried about the IDE performance overhead of the 20k lines of LibraryImport it generates into Robust.Client.

Also, this allows me to trim the binding, which saves a tiny amount of space from publishes. Always nice to have.
This commit is contained in:
Pieter-Jan Briers
2025-09-04 18:44:49 +02:00
committed by GitHub
parent 1f1e50539b
commit 5268a4a3f0
6 changed files with 3 additions and 8134 deletions

View File

@@ -30,15 +30,6 @@ namespace Robust.Client.Utility
#endif
}
if (name == SDL.nativeLibName)
{
#if LINUX || FREEBSD
return NativeLibrary.Load("libSDL3.so.0", assembly, path);
#elif MACOS
return NativeLibrary.Load("libSDL3.0.dylib", assembly, path);
#endif
}
return IntPtr.Zero;
});