From fcff84144c5a8871cfcb3983784133f412b31ed8 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 30 Sep 2017 12:46:05 +0200 Subject: Automatically detecting MySQL database for player names from Teamy BWS files --- Aktywator/Bws.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Aktywator/Bws.cs') diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index 2662b88..700969c 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -802,5 +802,18 @@ namespace Aktywator this.displayHandRecordInfo(this.loadSectionBoards(sections)); return count; } + + internal string getMySQLDatabaseForSection() + { + try + { + string dbString = this.sql.selectOne("SELECT custom_MySQL FROM `Section` WHERE ID = 1"); + return dbString.Split(',')[3]; + } + catch (Exception ee) + { + return null; + } + } } } -- cgit v1.2.3