Changed "cIniFile IniFile" to cIniFile & IniFile"
This commit is contained in:
parent
77661f4c59
commit
cb06f35cb8
@ -44,7 +44,7 @@ cAuthenticator::~cAuthenticator()
|
|||||||
|
|
||||||
|
|
||||||
/// Read custom values from INI
|
/// Read custom values from INI
|
||||||
void cAuthenticator::ReadINI(cIniFile IniFile)
|
void cAuthenticator::ReadINI(cIniFile & IniFile)
|
||||||
{
|
{
|
||||||
m_Server = IniFile.GetValue("Authentication", "Server");
|
m_Server = IniFile.GetValue("Authentication", "Server");
|
||||||
m_Address = IniFile.GetValue("Authentication", "Address");
|
m_Address = IniFile.GetValue("Authentication", "Address");
|
||||||
@ -93,7 +93,7 @@ void cAuthenticator::Authenticate(int a_ClientID, const AString & a_UserName, co
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cAuthenticator::Start(cIniFile IniFile)
|
void cAuthenticator::Start(cIniFile & IniFile)
|
||||||
{
|
{
|
||||||
ReadINI(IniFile);
|
ReadINI(IniFile);
|
||||||
m_ShouldTerminate = false;
|
m_ShouldTerminate = false;
|
||||||
|
@ -37,13 +37,13 @@ public:
|
|||||||
~cAuthenticator();
|
~cAuthenticator();
|
||||||
|
|
||||||
/// (Re-)read server and address from INI:
|
/// (Re-)read server and address from INI:
|
||||||
void ReadINI(cIniFile IniFile);
|
void ReadINI(cIniFile & IniFile);
|
||||||
|
|
||||||
/// Queues a request for authenticating a user. If the auth fails, the user is kicked
|
/// Queues a request for authenticating a user. If the auth fails, the user is kicked
|
||||||
void Authenticate(int a_ClientID, const AString & a_UserName, const AString & a_ServerHash);
|
void Authenticate(int a_ClientID, const AString & a_UserName, const AString & a_ServerHash);
|
||||||
|
|
||||||
/// Starts the authenticator thread. The thread may be started and stopped repeatedly
|
/// Starts the authenticator thread. The thread may be started and stopped repeatedly
|
||||||
void Start(cIniFile IniFile);
|
void Start(cIniFile & IniFile);
|
||||||
|
|
||||||
/// Stops the authenticator thread. The thread may be started and stopped repeatedly
|
/// Stops the authenticator thread. The thread may be started and stopped repeatedly
|
||||||
void Stop(void);
|
void Stop(void);
|
||||||
|
@ -245,7 +245,7 @@ void cRoot::LoadGlobalSettings()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void cRoot::LoadWorlds(cIniFile IniFile)
|
void cRoot::LoadWorlds(cIniFile & IniFile)
|
||||||
{
|
{
|
||||||
// First get the default world
|
// First get the default world
|
||||||
AString DefaultWorldName = IniFile.GetValueSet("Worlds", "DefaultWorld", "world");
|
AString DefaultWorldName = IniFile.GetValueSet("Worlds", "DefaultWorld", "world");
|
||||||
|
@ -162,7 +162,7 @@ private:
|
|||||||
void LoadGlobalSettings();
|
void LoadGlobalSettings();
|
||||||
|
|
||||||
/// Loads the worlds from settings.ini, creates the worldmap
|
/// Loads the worlds from settings.ini, creates the worldmap
|
||||||
void LoadWorlds(cIniFile IniFile);
|
void LoadWorlds(cIniFile & IniFile);
|
||||||
|
|
||||||
/// Starts each world's life
|
/// Starts each world's life
|
||||||
void StartWorlds(void);
|
void StartWorlds(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user