16 lines
273 B
C++
16 lines
273 B
C++
|
#include "rar.hpp"
|
||
|
|
||
|
SaveFilePos::SaveFilePos(File &SaveFile)
|
||
|
{
|
||
|
SaveFilePos::SaveFile=&SaveFile;
|
||
|
SavePos=SaveFile.Tell();
|
||
|
CloseCount=SaveFile.CloseCount;
|
||
|
}
|
||
|
|
||
|
|
||
|
SaveFilePos::~SaveFilePos()
|
||
|
{
|
||
|
if (CloseCount==SaveFile->CloseCount)
|
||
|
SaveFile->Seek(SavePos,SEEK_SET);
|
||
|
}
|