sys_process_get_paramsfo implemented

This commit is contained in:
Nekotekina 2015-02-28 17:41:15 +03:00
parent 316bd8d155
commit 942d984dc5
14 changed files with 58 additions and 86 deletions

View file

@ -255,24 +255,7 @@ void Emulator::Load()
vm::close();
return;
}
// trying to load some info from PARAM.SFO
vfsFile f2("/app_home/../PARAM.SFO");
if (f2.IsOpened())
{
PSFLoader psf(f2);
if (psf.Load(false))
{
std::string version = psf.GetString("PS3_SYSTEM_VER");
const size_t dot = version.find('.');
if (dot != std::string::npos)
{
Emu.m_sdk_version = (std::stoi(version, nullptr, 16) << 20) | ((std::stoi(version.substr(dot + 1), nullptr, 16) & 0xffff) << 4) | 1;
}
}
}
LoadPoints(BreakPointsDBName);
m_status = Ready;