Add prefs for logging. Don't throw if can't open log file. Remove Ragefopen and Rageifstream (they aren't needed).

This commit is contained in:
Chris Danford
2003-08-13 04:40:23 +00:00
parent ab000d06b1
commit 35950c4eaf
18 changed files with 76 additions and 57 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ void IniFile::SetPath(CString newpath)
bool IniFile::ReadFile()
{
LOG->Trace("INI: Reading '%s'",path.c_str() );
FILE *f = Ragefopen(path, "r");
FILE *f = fopen(path, "r");
if (f == NULL)
{
@@ -101,7 +101,7 @@ LOG->Trace("INI: Reading '%s'",path.c_str() );
// writes data stored in class to ini file
void IniFile::WriteFile()
{
FILE* fp = Ragefopen( path, "w" );
FILE* fp = fopen( path, "w" );
if( fp == NULL )
return;