summaryrefslogtreecommitdiffstats
path: root/src/IniFile.cpp
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2020-05-07 21:14:00 +0200
committerGitHub <noreply@github.com>2020-05-07 21:14:00 +0200
commitc710f6a4ea2231051a9e6406128d6e06af86e58e (patch)
treed86451d18434a1e02d8753ee2486d11068f69494 /src/IniFile.cpp
parentRemove coverity_scan branch reference (diff)
downloadcuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.gz
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.bz2
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.lz
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.xz
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.tar.zst
cuberite-c710f6a4ea2231051a9e6406128d6e06af86e58e.zip
Diffstat (limited to 'src/IniFile.cpp')
-rw-r--r--src/IniFile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/IniFile.cpp b/src/IniFile.cpp
index 2113af0e2..375c9d61f 100644
--- a/src/IniFile.cpp
+++ b/src/IniFile.cpp
@@ -61,7 +61,7 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
bool IsFromExampleRedirect = false;
- f.open((FILE_IO_PREFIX + a_FileName).c_str(), ios::in);
+ f.open((a_FileName).c_str(), ios::in);
if (f.fail())
{
f.clear();
@@ -70,7 +70,7 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
// Retry with the .example.ini file instead of .ini:
AString ExPath(a_FileName.substr(0, a_FileName.length() - 4));
ExPath.append(".example.ini");
- f.open((FILE_IO_PREFIX + ExPath).c_str(), ios::in);
+ f.open((ExPath).c_str(), ios::in);
if (f.fail())
{
return false;
@@ -176,7 +176,7 @@ bool cIniFile::ReadFile(const AString & a_FileName, bool a_AllowExampleRedirect)
if (IsFromExampleRedirect)
{
- WriteFile(FILE_IO_PREFIX + a_FileName);
+ WriteFile(a_FileName);
}
return true;
@@ -192,7 +192,7 @@ bool cIniFile::WriteFile(const AString & a_FileName) const
// a few bugs with ofstream. So ... fstream used.
fstream f;
- f.open((FILE_IO_PREFIX + a_FileName).c_str(), ios::out);
+ f.open((a_FileName).c_str(), ios::out);
if (f.fail())
{
return false;