mirror of
https://github.com/libretro/Play-.git
synced 2025-01-25 10:37:56 +00:00
22 lines
348 B
C++
22 lines
348 B
C++
|
#include "MemoryStateFile.h"
|
||
|
|
||
|
using namespace Framework;
|
||
|
|
||
|
CMemoryStateFile::CMemoryStateFile(const char* name, void* memory, size_t size) :
|
||
|
CZipFile(name),
|
||
|
m_memory(memory),
|
||
|
m_size(size)
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
CMemoryStateFile::~CMemoryStateFile()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
void CMemoryStateFile::Write(CStream& stream)
|
||
|
{
|
||
|
stream.Write(m_memory, m_size);
|
||
|
}
|