mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-24 08:01:22 -08:00
Merge pull request #2998 from cociorbaandrei/fix_null_pderef
Fix null pointer dereference.
This commit is contained in:
commit
8d009a7aae
@ -240,7 +240,8 @@ struct System::Impl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Shutdown() {
|
void Shutdown() {
|
||||||
// Log last frame performance stats
|
// Log last frame performance stats if game was loded
|
||||||
|
if (perf_stats) {
|
||||||
const auto perf_results = GetAndResetPerfStats();
|
const auto perf_results = GetAndResetPerfStats();
|
||||||
telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_EmulationSpeed",
|
telemetry_session->AddField(Telemetry::FieldType::Performance, "Shutdown_EmulationSpeed",
|
||||||
perf_results.emulation_speed * 100.0);
|
perf_results.emulation_speed * 100.0);
|
||||||
@ -250,6 +251,7 @@ struct System::Impl {
|
|||||||
perf_results.frametime * 1000.0);
|
perf_results.frametime * 1000.0);
|
||||||
telemetry_session->AddField(Telemetry::FieldType::Performance, "Mean_Frametime_MS",
|
telemetry_session->AddField(Telemetry::FieldType::Performance, "Mean_Frametime_MS",
|
||||||
perf_stats->GetMeanFrametime());
|
perf_stats->GetMeanFrametime());
|
||||||
|
}
|
||||||
|
|
||||||
lm_manager.Flush();
|
lm_manager.Flush();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user