Purge unused typeid() invocations

This commit is contained in:
Nekotekina 2021-01-27 22:46:30 +03:00
parent 28feea0447
commit 34274ec391
6 changed files with 2 additions and 11 deletions

View file

@ -856,7 +856,7 @@ std::vector<std::pair<u32, u32>> cpu_thread::dump_callstack_list() const
std::string cpu_thread::dump_misc() const
{
return fmt::format("Type: %s\n" "State: %s\n", typeid(*this).name(), state.load());
return fmt::format("Type: %s\n" "State: %s\n", id_type() == 1 ? "PPU" : id_type() == 2 ? "SPU" : "CPU", state.load());
}
bool cpu_thread::suspend_work::push(cpu_thread* _this) noexcept