From 33ca4d5003059d7d1f4b9e29649693ec0e5be262 Mon Sep 17 00:00:00 2001 From: faketruth Date: Thu, 16 Aug 2012 20:28:14 +0000 Subject: MCServer should run just fine on Android now :D The server is also stoppable from Android git-svn-id: http://mc-server.googlecode.com/svn/trunk@743 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cFile.cpp') diff --git a/source/cFile.cpp b/source/cFile.cpp index 32de28fe0..5558bfd45 100644 --- a/source/cFile.cpp +++ b/source/cFile.cpp @@ -76,14 +76,14 @@ bool cFile::Open(const AString & iFileName, EMode iMode) return false; } } - m_File = fopen(iFileName.c_str(), Mode); + m_File = fopen( (FILE_IO_PREFIX + iFileName).c_str(), Mode); if ((m_File == NULL) && (iMode == fmReadWrite)) { // Fix for MS not following C spec, opening "a" mode files for writing at the end only // The file open operation has been tried with "read update", fails if file not found // So now we know either the file doesn't exist or we don't have rights, no need to worry about file contents. // Simply re-open for read-writing, erasing existing contents: - m_File = fopen(iFileName.c_str(), "wb+"); + m_File = fopen( (FILE_IO_PREFIX + iFileName).c_str(), "wb+"); } return (m_File != NULL); } -- cgit v1.2.3