mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Add g_fxo->init_crtp to simplify thread construction
This commit is contained in:
parent
7eebe06931
commit
fa02a04baa
3 changed files with 14 additions and 11 deletions
|
@ -868,7 +868,7 @@ void Emulator::Load(const std::string& title_id, bool add_only, bool force_globa
|
|||
// Workaround for analyser glitches
|
||||
vm::falloc(0x10000, 0xf0000, vm::main);
|
||||
|
||||
auto sprx_loader_body = [this]
|
||||
g_fxo->init_crtp<named_thread>("SPRX Loader"sv, [this]
|
||||
{
|
||||
std::vector<std::string> dir_queue;
|
||||
dir_queue.emplace_back(m_path + '/');
|
||||
|
@ -983,9 +983,8 @@ void Emulator::Load(const std::string& title_id, bool add_only, bool force_globa
|
|||
{
|
||||
Emu.Stop();
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
g_fxo->init<named_thread<decltype(sprx_loader_body)>>("SPRX Loader"sv, std::move(sprx_loader_body));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue