Android: Move screenshot waiting logic to Renderer

This commit is contained in:
Stenzek committed 2017-03-04 16:53:16 +10:00
1 parent 811eafda57
commit 459a5ab554
5 files changed
+23 -16

No files matched your search

+1 -2
View File
@@ -484,8 +484,7 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_StopEmulatio
jobject obj)
{
std::lock_guard<std::mutex> guard(s_host_identity_lock);
Core::SaveScreenShot("thumb");
g_renderer->s_screenshot_completed.WaitFor(std::chrono::seconds(2));
Core::SaveScreenShot("thumb", true);
Core::Stop();
updateMainFrameEvent.Set(); // Kick the waiting event
}