Try to use designated initializers

This commit is contained in:
Nekotekina 2020-03-06 09:42:49 +03:00
parent 7514e53385
commit acd50eefaf

View file

@ -996,9 +996,10 @@ std::shared_ptr<lv2_prx> ppu_load_prx(const ppu_prx_object& elf, const std::stri
if (Emu.IsReady() && g_fxo->get<ppu_module>()->segs.empty()) if (Emu.IsReady() && g_fxo->get<ppu_module>()->segs.empty())
{ {
// Special loading mode // Special loading mode
ppu_thread_params p{}; ppu_thread_params p{
p.stack_addr = vm::cast(vm::alloc(0x100000, vm::stack, 4096)); .stack_addr = vm::cast(vm::alloc(0x100000, vm::stack, 4096)),
p.stack_size = 0x100000; .stack_size = 0x100000,
};
auto ppu = idm::make_ptr<named_thread<ppu_thread>>("PPU[0x1000000] Thread (test_thread)", p, "test_thread", 0); auto ppu = idm::make_ptr<named_thread<ppu_thread>>("PPU[0x1000000] Thread (test_thread)", p, "test_thread", 0);