summaryrefslogtreecommitdiffstats
path: root/iniFile
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-16 22:28:14 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-16 22:28:14 +0200
commit33ca4d5003059d7d1f4b9e29649693ec0e5be262 (patch)
tree7bfb4ec7c1d3fcc46c341406667033ec051f010c /iniFile
parentWindows compilation fix after Android changes (diff)
downloadcuberite-33ca4d5003059d7d1f4b9e29649693ec0e5be262.tar
cuberite-33ca4d5003059d7d1f4b9e29649693ec0e5be262.tar.gz
cuberite-33ca4d5003059d7d1f4b9e29649693ec0e5be262.tar.bz2
cuberite-33ca4d5003059d7d1f4b9e29649693ec0e5be262.tar.lz
cuberite-33ca4d5003059d7d1f4b9e29649693ec0e5be262.tar.xz
cuberite-33ca4d5003059d7d1f4b9e29649693ec0e5be262.tar.zst
cuberite-33ca4d5003059d7d1f4b9e29649693ec0e5be262.zip
Diffstat (limited to 'iniFile')
-rw-r--r--iniFile/iniFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/iniFile/iniFile.cpp b/iniFile/iniFile.cpp
index 8134ade8c..530c05178 100644
--- a/iniFile/iniFile.cpp
+++ b/iniFile/iniFile.cpp
@@ -59,7 +59,7 @@ bool cIniFile::ReadFile()
string keyname, valuename, value;
string::size_type pLeft, pRight;
- f.open( path.c_str(), ios::in);
+ f.open( (FILE_IO_PREFIX + path).c_str(), ios::in);
if ( f.fail())
return false;
@@ -127,7 +127,7 @@ bool cIniFile::WriteFile()
// a few bugs with ofstream. So ... fstream used.
fstream f;
- f.open( path.c_str(), ios::out);
+ f.open( (FILE_IO_PREFIX + path).c_str(), ios::out);
if ( f.fail())
return false;