Esempio n. 1
0
        private static bool SysUnloadDll(IntPtr libHandle)
        {
#if UNITY_STANDALONE_WIN
            return(PInvokes_Windows.FreeLibrary(libHandle));
#elif UNITY_STANDALONE_LINUX
            return(PInvokes_Linux.dlclose(libHandle) == 0);
#elif UNITY_STANDALONE_OSX
            return(PInvokes_Osx.dlclose(libHandle) == 0);
#endif
        }
Esempio n. 2
0
        private static bool SysUnloadDll(IntPtr libHandle)
        {
#if UNITY_STANDALONE_LINUX || UNITY_EDITOR_LINUX
            return(PInvokes_Linux.dlclose(libHandle) == 0);
#elif UNITY_STANDALONE_OSX || UNITY_EDITOR_OSX
            return(PInvokes_Osx.dlclose(libHandle) == 0);
#elif UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
            return(PInvokes_Windows.FreeLibrary(libHandle));
#else
            throw GetUnsupportedPlatformExcpetion();
#endif
        }