mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-16 03:49:59 +01:00
Don't crash when getting perf stats
This commit is contained in:
parent
5b6ee9a6ab
commit
714a85119d
@ -296,7 +296,8 @@ void System::PrepareReschedule() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PerfStats::Results System::GetAndResetPerfStats() {
|
PerfStats::Results System::GetAndResetPerfStats() {
|
||||||
return perf_stats->GetAndResetStats(timing->GetGlobalTimeUs());
|
return (perf_stats && timing) ? perf_stats->GetAndResetStats(timing->GetGlobalTimeUs())
|
||||||
|
: PerfStats::Results{};
|
||||||
}
|
}
|
||||||
|
|
||||||
void System::Reschedule() {
|
void System::Reschedule() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user