Beispiel #1
0
        public WindowsPlatform()
        {
            var paths = new List <string> {
                NativeLibraryExtractor.LibraryRoot
            };

            Registry = new NativeLibraryRegistry(paths);
        }
Beispiel #2
0
        public MacPlatform()
        {
            Directory.SetCurrentDirectory(NativeLibraryExtractor.LibraryRoot);
            var paths = new List <string>
            {
                NativeLibraryExtractor.LibraryRoot
            };

            Registry = new NativeLibraryRegistry(paths);
        }
Beispiel #3
0
        public LinuxPlatform()
        {
            var paths = new List <string>
            {
                NativeLibraryExtractor.LibraryRoot,
                "/usr/lib",
                "/usr/local/lib"
            };

            Registry = new NativeLibraryRegistry(paths);
        }
Beispiel #4
0
        public LinuxPlatform()
        {
            // our root has to be at the end.
            // on linux. why? f**k if i know,
            // but it works that way. probably one
            // of the natives fails to load, and
            // the cascade results in renderer failing
            // to initialize, but that's just my humble theory

            var paths = new List <string>
            {
                "/lib",
                "/usr/lib",
                "/usr/local/lib",
                NativeLibraryExtractor.LibraryRoot
            };

            Registry = new NativeLibraryRegistry(paths);
        }