mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Android: Move screenshot waiting logic to Renderer
This commit is contained in:
parent
811eafda57
commit
459a5ab554
5 changed files with 23 additions and 16 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue