From 915ead34cb0c02c4def117971b21c4d810f7accf Mon Sep 17 00:00:00 2001 From: Stefanos A Date: Sat, 12 Oct 2013 15:17:10 +0200 Subject: [PATCH] Modify dllimport path on Android builds. --- Source/OpenTK/Platform/SDL2/Sdl2.cs | 8 ++++++++ Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs | 5 ----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/OpenTK/Platform/SDL2/Sdl2.cs b/Source/OpenTK/Platform/SDL2/Sdl2.cs index aaa64b87..1f394c5b 100644 --- a/Source/OpenTK/Platform/SDL2/Sdl2.cs +++ b/Source/OpenTK/Platform/SDL2/Sdl2.cs @@ -31,6 +31,14 @@ namespace OpenTK.Platform.SDL2 { partial class SDL { +#if ANDROID + const string nativeLibName = "libSDL2.so"; +#elif IPHONE + const string nativeLibName = "__Internal"; +#else + const string nativeLibName = "SDL2.dll"; +#endif + public readonly static object Sync = new object(); public readonly static SDL_version Version; diff --git a/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs b/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs index af01d819..e88a968d 100644 --- a/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs +++ b/Source/OpenTK/Platform/SDL2/sdl2-cs/src/SDL2.cs @@ -40,11 +40,6 @@ namespace OpenTK.Platform.SDL2 { #region SDL2# Variables - /// - /// Used by DllImport to load the native library. - /// - private const string nativeLibName = "SDL2.dll"; - #endregion #region SDL_stdinc.h