summaryrefslogtreecommitdiffstats
path: root/src/IniFile.cpp
diff options
context:
space:
mode:
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;