Add an XLX base so the control ids can be shifted.

This commit is contained in:
Jonathan Naylor
2017-05-25 18:24:05 +01:00
parent d12ac3ecb4
commit 87e261e99e
5 changed files with 19 additions and 1 deletions

View File

@@ -84,6 +84,7 @@ m_xlxNetworkLocal(0U),
m_xlxNetworkPassword(),
m_xlxNetworkSlot(2U),
m_xlxNetworkTG(9U),
m_xlxNetworkBase(4000U),
m_xlxNetworkOptions(),
m_xlxNetworkDebug(false)
{
@@ -183,6 +184,8 @@ bool CConf::read()
m_xlxNetworkSlot = (unsigned int)::atoi(value);
else if (::strcmp(key, "TG") == 0)
m_xlxNetworkTG = (unsigned int)::atoi(value);
else if (::strcmp(key, "Base") == 0)
m_xlxNetworkBase = (unsigned int)::atoi(value);
else if (::strcmp(key, "Options") == 0)
m_xlxNetworkOptions = value;
else if (::strcmp(key, "Debug") == 0)
@@ -452,6 +455,11 @@ unsigned int CConf::getXLXNetworkTG() const
return m_xlxNetworkTG;
}
unsigned int CConf::getXLXNetworkBase() const
{
return m_xlxNetworkBase;
}
std::string CConf::getXLXNetworkPassword() const
{
return m_xlxNetworkPassword;