Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
elad335 committed Jan 30, 2021
1 parent 6b3b06d commit 651b050
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions rpcs3/Emu/Cell/PPUThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2389,6 +2389,23 @@ extern void ppu_initialize()
dir_queue.emplace_back(firmware_sprx_path);
}

// Initialize main module cache
if (!_main->segs.empty())
{
ppu_initialize(*_main);
}

// Initialize preloaded libraries
for (auto ptr : prx_list)
{
if (Emu.IsStopped())
{
return;
}

ppu_initialize(*ptr);
}

// Avoid compilation if main's cache exists or it is a standalone SELF with no PARAM.SFO
if (compile_main && !Emu.GetTitleID().empty())
{
Expand All @@ -2406,23 +2423,6 @@ extern void ppu_initialize()
{
return;
}

// Initialize main module cache
if (!_main->segs.empty())
{
ppu_initialize(*_main);
}

// Initialize preloaded libraries
for (auto ptr : prx_list)
{
if (Emu.IsStopped())
{
return;
}

ppu_initialize(*ptr);
}
}

bool ppu_initialize(const ppu_module& info, bool check_only)
Expand Down

0 comments on commit 651b050

Please sign in to comment.