DH 2012-11-15 01:39:56 +02:00
parent de070bf485
commit a90b5cf37a
1998 changed files with 1034301 additions and 0 deletions

35
rpcs3/Loader/SELF.cpp Normal file
View file

@ -0,0 +1,35 @@
#include "stdafx.h"
#include "SELF.h"
SELFLoader::SELFLoader(wxFile& f)
: self_f(f)
, LoaderBase()
{
}
SELFLoader::SELFLoader(const wxString& path)
: self_f(*new wxFile(path))
, LoaderBase()
{
}
bool SELFLoader::LoadInfo()
{
if(!self_f.IsOpened()) return false;
self_f.Seek(0);
sce_hdr.Load(self_f);
self_hdr.Load(self_f);
if(!sce_hdr.CheckMagic()) return false;
return true;
}
bool SELFLoader::LoadData()
{
if(!self_f.IsOpened()) return false;
sce_hdr.Show();
self_hdr.Show();
ConLog.Error("Boot SELF not supported yet!");
return false;
}