If a file is already open, close it.
This commit is contained in:
@@ -48,6 +48,7 @@ void CollapsePath( CString &sPath )
|
|||||||
|
|
||||||
bool RageFile::Open(const CString& path, const char *mode)
|
bool RageFile::Open(const CString& path, const char *mode)
|
||||||
{
|
{
|
||||||
|
Close();
|
||||||
mPath = path;
|
mPath = path;
|
||||||
FixSlashesInPlace(mPath);
|
FixSlashesInPlace(mPath);
|
||||||
mFP = fopen(mPath, mode);
|
mFP = fopen(mPath, mode);
|
||||||
|
|||||||
Reference in New Issue
Block a user