If a file is already open, close it.

This commit is contained in:
Steve Checkoway
2003-11-28 04:57:54 +00:00
parent f399e1ce58
commit a740001f91
+1
View File
@@ -48,6 +48,7 @@ void CollapsePath( CString &sPath )
bool RageFile::Open(const CString& path, const char *mode)
{
Close();
mPath = path;
FixSlashesInPlace(mPath);
mFP = fopen(mPath, mode);