is beta07 switch for hardcoded channel and server
This commit is contained in:
+13
-4
@@ -37,6 +37,9 @@
|
||||
|
||||
#define NET_DEFAULT_GAME "default"
|
||||
|
||||
//uncomment for 0.7 beta
|
||||
// #define POKERTH_IS_07BETA
|
||||
|
||||
using namespace std;
|
||||
|
||||
Session::Session(GuiInterface *g, ConfigFile *c)
|
||||
@@ -168,7 +171,11 @@ void Session::startInternetClient()
|
||||
myConfig->readConfigInt("IRCServerPort"),
|
||||
myConfig->readConfigInt("IRCServerUseIpv6") == 1,
|
||||
myIrcNick,
|
||||
myConfig->readConfigString("IRCChannel"), /*"#pokerth-lobby-07beta",*///WARNING this is just for 0.7 beta to connect to testing chat //////////////
|
||||
#ifdef POKERTH_IS_07BETA
|
||||
"#pokerth-lobby-07beta",
|
||||
#else
|
||||
myConfig->readConfigString("IRCChannel"),
|
||||
#endif
|
||||
myConfig->readConfigString("IRCChannelPassword"));
|
||||
myClientIrcThread->Run();
|
||||
}
|
||||
@@ -177,11 +184,13 @@ void Session::startInternetClient()
|
||||
bool useAvatarServer = myConfig->readConfigInt("UseAvatarServer") != 0;
|
||||
|
||||
myNetClient->Init(
|
||||
myConfig->readConfigString("InternetServerAddress"), /*"pokerth.net/serverlist07.xml.z", 1,*/
|
||||
//WARNING this is just for 0.7 beta to connect to testing server //////////////
|
||||
myConfig->readConfigString("InternetServerAddress"),
|
||||
#ifdef POKERTH_IS_07BETA
|
||||
"pokerth.net/serverlist07.xml.z", 1,
|
||||
#else
|
||||
myConfig->readConfigString("InternetServerListAddress"),
|
||||
myConfig->readConfigInt("InternetServerConfigMode") == 0,
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#endif
|
||||
myConfig->readConfigInt("InternetServerPort"),
|
||||
myConfig->readConfigInt("InternetServerUseIpv6") == 1,
|
||||
myConfig->readConfigInt("InternetServerUseSctp") == 1,
|
||||
|
||||
Reference in New Issue
Block a user