mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-29 06:07:56 +03:00
32 lines
438 B
C++
32 lines
438 B
C++
#include "ElfViewEx.h"
|
|
|
|
using namespace Framework;
|
|
|
|
CElfViewEx::CElfViewEx(HWND parentWnd)
|
|
: CELFView(parentWnd)
|
|
, m_elf(NULL)
|
|
{
|
|
}
|
|
|
|
CElfViewEx::~CElfViewEx()
|
|
{
|
|
SetELF(NULL);
|
|
|
|
if(m_elf != NULL)
|
|
{
|
|
delete m_elf;
|
|
m_elf = NULL;
|
|
}
|
|
}
|
|
|
|
void CElfViewEx::LoadElf(Framework::CStream& stream)
|
|
{
|
|
if(m_elf != NULL)
|
|
{
|
|
delete m_elf;
|
|
m_elf = NULL;
|
|
}
|
|
|
|
m_elf = new CElfFile(stream);
|
|
SetELF(m_elf);
|
|
}
|