Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Updater] Check whether we've already had an update triggered #9580

Conversation

Antidote
Copy link
Contributor

@Antidote Antidote commented Mar 11, 2021

Currently Dolphin just assumes that it only has one update running, if a user were to "accidentally" check for updates, check the "Update when dolphin closes" checkbox multiple times then closes dolphin, you get a ton of updaters running at once.

The solution is to only ever allow dolphin to trigger the update once then wait for dolphin to close.

@@ -31,6 +31,7 @@

namespace
{
bool s_update_triggered = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I was trying to see if we could avoid adding static state, but I guess spawning a process is modifying system global state anyway...)

@leoetlino leoetlino merged commit b980dd1 into dolphin-emu:master Mar 16, 2021
10 checks passed
@Antidote Antidote deleted the redundant-update-trigger-check branch March 17, 2021 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants