mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
This commit is contained in:
parent
de070bf485
commit
a90b5cf37a
1998 changed files with 1034301 additions and 0 deletions
35
rpcs3/Loader/SELF.cpp
Normal file
35
rpcs3/Loader/SELF.cpp
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue