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

WinUpdater: Defer modifying any files until Updater.exe #11189

Merged
merged 1 commit into from Oct 23, 2022

Conversation

shuffle2
Copy link
Contributor

Fixes https://bugs.dolphin-emu.org/issues/12151

IMO better way to fix the issue than #10990

I (hopefully) haven't modified the logic at all on macos - I'm not sure if it should be or not.

The core of the problem was that File::Copy(updater_path, reloc_updater_path); was failing silently. This is actually a pervasive problem in dolphin: many uses of filesystem-related Common functions have no error handling by their callers. I tried adding [[nodiscard]] to funcs in FileUtil but fixing such issues quickly became a large change that I'm not necessarily concerned with at the moment (maybe someone else wants to do it?). For instance, the macos path uses File::CopyDir in here and that func doesn't even return success indication at all (and the chmod result isn't checked, etc...).

@JMC47 JMC47 merged commit 34de2b8 into dolphin-emu:master Oct 23, 2022
11 checks passed
@shuffle2 shuffle2 deleted the updater-elevation branch October 23, 2022 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants