mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 23:41:26 +12:00
Compilation fix
This commit is contained in:
parent
9d6df238d5
commit
bc8b71cbc1
2 changed files with 18 additions and 20 deletions
|
@ -191,24 +191,10 @@ void Emulator::Load()
|
|||
ResetInfo();
|
||||
GetVFS().Init(elf_dir);
|
||||
|
||||
// load custom config as global
|
||||
if (!Ini.UseDefaultIni.GetValue())
|
||||
{
|
||||
std::string& name = PSFLoader{ vfsFile{ "/app_home/../PARAM.SFO" } }.GetString("TITLE_ID");
|
||||
if (name.size())
|
||||
{
|
||||
name = name.substr(0, 4) + "-" + name.substr(4, 5);
|
||||
CreateConfig(name);
|
||||
rpcs3::config.path("data/" + name + "/" + name + ".ini");
|
||||
rpcs3::config.load();
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: use state configuration instead of global config
|
||||
rpcs3::state.config = rpcs3::config;
|
||||
|
||||
LOG_NOTICE(LOADER, "Loading '%s'...", m_path.c_str());
|
||||
LOG_NOTICE(LOADER, "Used configuration: '%s'", rpcs3::config.path().c_str());
|
||||
|
||||
// /dev_bdvd/ mounting
|
||||
vfsFile f("/app_home/../dev_bdvd.path");
|
||||
|
@ -276,6 +262,21 @@ void Emulator::Load()
|
|||
title.length() ? SetTitle(title) : SetTitle(m_path);
|
||||
SetTitleID(title_id);
|
||||
|
||||
// load custom config as global
|
||||
if (!Ini.UseDefaultIni.GetValue())
|
||||
{
|
||||
std::string& name = title_id;
|
||||
if (name.size())
|
||||
{
|
||||
name = name.substr(0, 4) + "-" + name.substr(4, 5);
|
||||
CreateConfig(name);
|
||||
rpcs3::config.path("data/" + name + "/" + name + ".ini");
|
||||
rpcs3::config.load();
|
||||
}
|
||||
}
|
||||
|
||||
LOG_NOTICE(LOADER, "Used configuration: '%s'", rpcs3::config.path().c_str());
|
||||
|
||||
if (m_elf_path.empty())
|
||||
{
|
||||
GetVFS().GetDeviceLocal(m_path, m_elf_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue