Пример #1
0
        /// <summary>
        /// Load the plugin into memory.
        /// <param name="Folder">Folder to load the plugin from... <see langword="null"/> (default), Load from Current Directory.</param>
        /// </summary>
        public void Load(string Folder = null)
        {
            if (_hPlugin != 0)
            {
                return;
            }

            _hPlugin = Bass.PluginLoad(Folder != null ? Path.Combine(Folder, DllName) : DllName);

            if (_hPlugin == 0)
            {
                throw new DllNotFoundException(DllName);
            }
        }