mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Use g_fxo for global ppu_module instance
Also fix autonomous PRX/SPU loading sequence.
This commit is contained in:
parent
240b4a8bd8
commit
b48cdc2260
4 changed files with 13 additions and 8 deletions
|
@ -1304,7 +1304,7 @@ extern bool ppu_stdcx(ppu_thread& ppu, u32 addr, u64 reg_value)
|
|||
|
||||
extern void ppu_initialize()
|
||||
{
|
||||
const auto _main = fxm::get<ppu_module>();
|
||||
const auto _main = g_fxo->get<ppu_module>();
|
||||
|
||||
if (!_main)
|
||||
{
|
||||
|
@ -1317,7 +1317,10 @@ extern void ppu_initialize()
|
|||
}
|
||||
|
||||
// Initialize main module
|
||||
ppu_initialize(*_main);
|
||||
if (!_main->segs.empty())
|
||||
{
|
||||
ppu_initialize(*_main);
|
||||
}
|
||||
|
||||
std::vector<lv2_prx*> prx_list;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue