mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
PPU Precompilation: Fixup file counter
This commit is contained in:
parent
b900c43ceb
commit
8d9e9eaff9
1 changed files with 2 additions and 5 deletions
|
@ -3749,7 +3749,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
// Set low priority
|
// Set low priority
|
||||||
thread_ctrl::scoped_priority low_prio(-1);
|
thread_ctrl::scoped_priority low_prio(-1);
|
||||||
|
|
||||||
for (usz func_i = fnext++; func_i < file_queue.size(); func_i = fnext++, g_progr_fdone++)
|
for (usz func_i = fnext++, inc_fdone = 1; func_i < file_queue.size(); func_i = fnext++, g_progr_fdone += std::exchange(inc_fdone, 1))
|
||||||
{
|
{
|
||||||
if (Emu.IsStopped())
|
if (Emu.IsStopped())
|
||||||
{
|
{
|
||||||
|
@ -3843,7 +3843,7 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
|
|
||||||
ppu_log.notice("Failed to precompile '%s' (prx: %s, ovl: %s): Attempting tratment as executable file", path, prx_err, ovl_err);
|
ppu_log.notice("Failed to precompile '%s' (prx: %s, ovl: %s): Attempting tratment as executable file", path, prx_err, ovl_err);
|
||||||
possible_exec_file_paths.push(path);
|
possible_exec_file_paths.push(path);
|
||||||
continue;
|
inc_fdone = 0;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -3869,8 +3869,6 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
|
|
||||||
for (; slice; slice.pop_front(), g_progr_fdone++)
|
for (; slice; slice.pop_front(), g_progr_fdone++)
|
||||||
{
|
{
|
||||||
g_progr_ftotal++;
|
|
||||||
|
|
||||||
if (Emu.IsStopped())
|
if (Emu.IsStopped())
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
@ -3947,7 +3945,6 @@ extern void ppu_precompile(std::vector<std::string>& dir_queue, std::vector<ppu_
|
||||||
}
|
}
|
||||||
|
|
||||||
ppu_log.notice("Failed to precompile '%s' as executable (%s)", path, exec_err);
|
ppu_log.notice("Failed to precompile '%s' as executable (%s)", path, exec_err);
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
g_fxo->get<main_ppu_module>() = std::move(main_module);
|
g_fxo->get<main_ppu_module>() = std::move(main_module);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue