mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-06 07:06:00 +00:00
19 lines
305 B
C++
19 lines
305 B
C++
#include "Elf.h"
|
|
|
|
|
|
static self_header* load_self(FsFile& f)
|
|
{
|
|
//read self header
|
|
auto* self = new self_header;
|
|
f.Read(self, sizeof(self_header));
|
|
return self;
|
|
}
|
|
|
|
void Elf::Open(const std::string& file_name)
|
|
{
|
|
m_f = new FsFile;
|
|
m_f->Open(file_name, fsOpenMode::fsRead);
|
|
|
|
m_self = load_self(*m_f);
|
|
|
|
} |