mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 01:38:37 +12:00
Improve get_current_cpu_thread()
This commit is contained in:
parent
04cac6cd33
commit
638f20c80f
8 changed files with 58 additions and 25 deletions
|
@ -1666,16 +1666,11 @@ s32 error_code::error_report(s32 result, const char* fmt, const fmt_type_info* s
|
|||
logs::channel* channel = &sys_log;
|
||||
const char* func = "Unknown function";
|
||||
|
||||
if (auto thread = get_current_cpu_thread())
|
||||
if (auto ppu = get_current_cpu_thread<ppu_thread>())
|
||||
{
|
||||
if (thread->id_type() == 1)
|
||||
if (ppu->current_function)
|
||||
{
|
||||
auto& ppu = static_cast<ppu_thread&>(*thread);
|
||||
|
||||
if (ppu.current_function)
|
||||
{
|
||||
func = ppu.current_function;
|
||||
}
|
||||
func = ppu->current_function;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue