summaryrefslogtreecommitdiffstats
path: root/src/IniFile.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-24 10:19:13 +0200
committerMattes D <github@xoft.cz>2014-10-24 10:19:13 +0200
commit765bf006ad28d6dfcddd6c29ec203bbc7753e332 (patch)
tree2ddd79061104d4a4f80442a432a52fd81120e631 /src/IniFile.cpp
parentSuggestions (diff)
parentMerge pull request #1565 from mc-server/MergedIniFile (diff)
downloadcuberite-765bf006ad28d6dfcddd6c29ec203bbc7753e332.tar
cuberite-765bf006ad28d6dfcddd6c29ec203bbc7753e332.tar.gz
cuberite-765bf006ad28d6dfcddd6c29ec203bbc7753e332.tar.bz2
cuberite-765bf006ad28d6dfcddd6c29ec203bbc7753e332.tar.lz
cuberite-765bf006ad28d6dfcddd6c29ec203bbc7753e332.tar.xz
cuberite-765bf006ad28d6dfcddd6c29ec203bbc7753e332.tar.zst
cuberite-765bf006ad28d6dfcddd6c29ec203bbc7753e332.zip
Diffstat (limited to '')
-rw-r--r--src/IniFile.cpp (renamed from lib/inifile/iniFile.cpp)20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/inifile/iniFile.cpp b/src/IniFile.cpp
index 7cfe7661f..a666a4ff8 100644
--- a/lib/inifile/iniFile.cpp
+++ b/src/IniFile.cpp
@@ -24,7 +24,7 @@
#include <ctype.h>
// Local Includes
-#include "iniFile.h"
+#include "IniFile.h"
#if defined(WIN32)
#define iniEOL endl
@@ -32,10 +32,6 @@
#define iniEOL '\r' << endl
#endif
-#ifndef _WIN32
- #define sscanf_s(buffer, stringbuffer, ...) (sscanf(buffer, stringbuffer, __VA_ARGS__))
-#endif
-
using namespace std;
@@ -465,20 +461,6 @@ bool cIniFile::SetValueF(const AString & a_KeyName, const AString & a_ValueName,
-bool cIniFile::SetValueV(const AString & a_KeyName, const AString & a_ValueName, const char * a_Format, ...)
-{
- va_list args;
- va_start(args, a_Format);
- AString Data;
- AppendVPrintf(Data, a_Format, args);
- va_end(args);
- return SetValue(a_KeyName, a_ValueName, Data);
-}
-
-
-
-
-
AString cIniFile::GetValue(const int keyID, const int valueID, const AString & defValue) const
{
if ((keyID < (int)keys.size()) && (valueID < (int)keys[keyID].names.size()))