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
@@ -605,7 +605,7 @@ struct SurfaceHeader
/* Save and load SDL_Surfaces to disk. This avoids problems with bitmaps. */
bool mySDL_SaveSurface( SDL_Surface *img, CString file )
{
FILE *f = Ragefopen(file.c_str(), "wb+");
FILE *f = fopen(file.c_str(), "wb+");
if(f == NULL)
return false;
@@ -643,7 +643,7 @@ bool mySDL_SaveSurface( SDL_Surface *img, CString file )
SDL_Surface *mySDL_LoadSurface( CString file )
{
FILE *f = Ragefopen(file.c_str(), "rb");
FILE *f = fopen(file.c_str(), "rb");
if(f == NULL)
return NULL;