Android: Move screenshot waiting logic to Renderer

This commit is contained in:
Stenzek
2017-03-04 16:42:35 +10:00
parent 811eafda57
commit 459a5ab554
5 changed files with 23 additions and 16 deletions

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
}