From c710f6a4ea2231051a9e6406128d6e06af86e58e Mon Sep 17 00:00:00 2001 From: Mat Date: Thu, 7 May 2020 22:14:00 +0300 Subject: Remove old Android leftovers (#4722) --- src/IniFile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/IniFile.cpp') 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; -- cgit v1.2.3