mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 21:57:57 +03:00
21 lines
301 B
C++
21 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;
|
||
|
}
|