Play-/Source/iop/Ioman_ScopedFile.cpp

21 lines
301 B
C++
Raw Permalink Normal View History

2019-09-16 18:50:28 -04:00
#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;
}