summaryrefslogtreecommitdiffstats
path: root/source/Authenticator.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-10-26 19:43:34 +0200
committermadmaxoft <github@xoft.cz>2013-10-26 19:43:34 +0200
commit52f88b9595f28c3c14ab1868dbed1eba1093c078 (patch)
treec8e9a5174269258e5a5caa9a1a8d22fe7475a3f7 /source/Authenticator.cpp
parentcMonster: Improved doxycomments. (diff)
parentAPIDump: Documented cIniFile. (diff)
downloadcuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.gz
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.bz2
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.lz
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.xz
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.tar.zst
cuberite-52f88b9595f28c3c14ab1868dbed1eba1093c078.zip
Diffstat (limited to 'source/Authenticator.cpp')
-rw-r--r--source/Authenticator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Authenticator.cpp b/source/Authenticator.cpp
index a45617f93..d7e05b4c2 100644
--- a/source/Authenticator.cpp
+++ b/source/Authenticator.cpp
@@ -47,8 +47,8 @@ cAuthenticator::~cAuthenticator()
/// Read custom values from INI
void cAuthenticator::ReadINI(void)
{
- cIniFile IniFile("settings.ini");
- if (!IniFile.ReadFile())
+ cIniFile IniFile;
+ if (!IniFile.ReadFile("settings.ini"))
{
return;
}
@@ -74,7 +74,7 @@ void cAuthenticator::ReadINI(void)
if (bSave)
{
IniFile.SetValueB("Authentication", "Authenticate", m_ShouldAuthenticate);
- IniFile.WriteFile();
+ IniFile.WriteFile("settings.ini");
}
}