mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Firmware libraries settings overhaul
This commit is contained in:
parent
e321765c54
commit
e5603fec1e
12 changed files with 178 additions and 220 deletions
|
@ -1077,10 +1077,20 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
|||
// Force LLVM recompiler
|
||||
g_cfg.core.ppu_decoder.from_default();
|
||||
|
||||
// Force lib loading mode
|
||||
g_cfg.core.lib_loading.from_string("Manually load selected libraries");
|
||||
ensure(g_cfg.core.lib_loading == lib_loading_type::manual);
|
||||
g_cfg.core.load_libraries.from_default();
|
||||
// Force LLE lib loading mode
|
||||
g_cfg.core.libraries_control.set_set([]()
|
||||
{
|
||||
std::set<std::string> set;
|
||||
|
||||
extern const std::map<std::string_view, int> g_prx_list;
|
||||
|
||||
for (const auto& lib : g_prx_list)
|
||||
{
|
||||
set.emplace(std::string(lib.first) + ":lle");
|
||||
}
|
||||
|
||||
return set;
|
||||
}());
|
||||
|
||||
// Fake arg (workaround)
|
||||
argv.resize(1);
|
||||
|
@ -1361,10 +1371,6 @@ game_boot_result Emulator::Load(const std::string& title_id, bool add_only, bool
|
|||
|
||||
const std::string game_path = "/dev_hdd0/game/" + m_path.substr(hdd0_game.size(), 9);
|
||||
|
||||
sys_log.notice("Forcing manual lib loading mode");
|
||||
g_cfg.core.lib_loading.from_string(fmt::format("%s", lib_loading_type::manual));
|
||||
g_cfg.core.load_libraries.from_list({});
|
||||
|
||||
argv.resize(9);
|
||||
argv[0] = "/dev_flash/ps1emu/ps1_newemu.self";
|
||||
argv[1] = m_title_id + "_mc1.VM1"; // virtual mc 1 /dev_hdd0/savedata/vmc/%argv[1]%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue