Compare commits

...

2 Commits

Author SHA1 Message Date
v1993
a16cef57ff Improve shutdown when program have terminated
Still crashes or deadlocks later on
2021-09-26 00:09:22 +03:00
v1993
76d05c6310 Fix yuzu segfaulting when homebrew exits
Segfault now happens when stopping emulation afterwards.
2021-09-25 23:54:27 +03:00
2 changed files with 9 additions and 3 deletions

View File

@@ -115,7 +115,9 @@ void EmuThread::run() {
}
// Shutdown the core emulation
system.Shutdown();
if (system.IsPoweredOn()) {
system.Shutdown();
}
#if MICROPROFILE_ENABLED
MicroProfileOnThreadExit();

View File

@@ -2947,8 +2947,12 @@ void GMainWindow::UpdateStatusBar() {
auto& system = Core::System::GetInstance();
auto results = system.GetAndResetPerfStats();
auto& shader_notify = system.GPU().ShaderNotify();
const int shaders_building = shader_notify.ShadersBuilding();
int shaders_building = 0;
if (system.IsPoweredOn()) {
auto& shader_notify = system.GPU().ShaderNotify();
shaders_building = shader_notify.ShadersBuilding();
}
if (shaders_building > 0) {
shader_building_label->setText(tr("Building: %n shader(s)", "", shaders_building));