1
0

Remove old Android leftovers (#4722)

This commit is contained in:
Mat
2020-05-07 22:14:00 +03:00
committed by GitHub
parent f3b4183dc2
commit c710f6a4ea
22 changed files with 40 additions and 108 deletions

View File

@@ -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;