remove GetFilePointer

This commit is contained in:
Glenn Maynard
2003-12-03 20:37:10 +00:00
parent df788b70ea
commit ac7d46e81d
2 changed files with 5 additions and 5 deletions
+4 -4
View File
@@ -1,5 +1,5 @@
#ifndef RageFile_H
#define RageFile_H
#ifndef RAGE_FILE_H
#define RAGE_FILE_H
/*
-----------------------------------------------------------------------------
@@ -9,7 +9,7 @@
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
Steve Checkoway
Steve Checkoway
-----------------------------------------------------------------------------
*/
@@ -39,7 +39,7 @@ public:
bool IsOpen() { return (mFP != NULL); }
bool AtEOF() { return (feof(mFP) != 0); }
int GetError() { return ferror(mFP); }
FILE *GetFilePointer() { return mFP; }
void ClearError() { clearerr(mFP); }
long Tell() { return ftell(mFP); }
bool Seek(long offset, int origin = SEEK_CUR) { return !fseek(mFP, offset, origin); }
+1 -1
View File
@@ -114,7 +114,7 @@ void TitleSubst::Load(const CString &filename, const CString &section)
CString line = f.GetLine();
if (f.GetError() != 0)
{
clearerr(f.GetFilePointer());
f.ClearError();
continue;
}
if(line.size() > 0 && utf8_get_char(line.c_str()) == 0xFEFF)