Exemple #1
0
        private static IntPtr SysLoadDll(string filepath)
        {
#if UNITY_STANDALONE_WIN
            return(PInvokes_Windows.LoadLibrary(filepath));
#elif UNITY_STANDALONE_LINUX
            return(PInvokes_Linux.dlopen(filepath, (int)Options.posixDlopenFlags));
#elif UNITY_STANDALONE_OSX
            return(PInvokes_Osx.dlopen(filepath, (int)Options.posixDlopenFlags));
#endif
        }
        private static IntPtr SysLoadDll(string filepath)
        {
#if UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
            return(PInvokes_Linux.dlopen(filepath, (int)Options.posixDlopenFlags));
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            return(PInvokes_Osx.dlopen(filepath, (int)Options.posixDlopenFlags));
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
            return(PInvokes_Windows.LoadLibrary(filepath));
#else
            throw GetUnsupportedPlatformExcpetion();
#endif
        }