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