bool Register() { if (Mbrola.Binding == MbrolaBinding.Library) { if (!MbrPlay.DatabaseExist(this.Database) || !File.Exists(MbrPlay.RegGetDatabasePath(Database))) { string localPath = Path.Combine(FileBindings.VoicePath, this.Database); if (File.Exists(localPath)) { System.Text.StringBuilder sb = new System.Text.StringBuilder(260); return(MbrPlay.RegisterDatabase(this.Database, localPath, this.Database, false, sb, 260)); } else { return(false); } } return(true); } else { return(File.Exists(DatabaseFile)); } }
bool Register() { if (!MbrPlay.DatabaseExist(this.name)) { string localPath = Path.Combine(FileBindings.VoicePath, this.name); if (File.Exists(localPath)) { System.Text.StringBuilder sb = new System.Text.StringBuilder(260); return(MbrPlay.RegisterDatabase(this.name, localPath, this.name, false, sb, 260)); } else { return(false); } } return(true); }