Play-/Source/iop/Ioman_ScopedFile.cpp
2019-09-21 22:36:55 -04:00

20 lines
301 B
C++

#include "iop/Ioman_ScopedFile.h"
using namespace Iop;
using namespace Iop::Ioman;
CScopedFile::CScopedFile(uint32 handle, CIoman& ioman)
: m_handle(handle)
, m_ioman(ioman)
{
}
CScopedFile::~CScopedFile()
{
m_ioman.Close(m_handle);
}
CScopedFile::operator uint32()
{
return m_handle;
}