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
Back up Wii setting.txt and SYSCONF while emulating #8672
Conversation
|
Won't this cause setting changes that are done during emulation (e.g. updating the Wii remote speaker volume with the HOME menu, or changing console settings in the System Menu) to be always reverted? |
|
Yes, you're right. I didn't think of that being a valid way to change settings. I will make it so that the SYSCONF backup gets deleted instead of restored at emulation end. |
|
I wonder whether it'd be possible to improve the existing SYSCONF restore logic, so that it also works if Dolphin was closed ungracefully: dolphin/Source/Core/Core/BootManager.cpp Lines 458 to 486 in 3613642
|
36829a7
to
1fbb6c9
Compare
|
That would require us to save the list of overridden settings to disk in some way, right? But in exchange, we wouldn't have to save an extra copy of the SYSCONF file itself like I do in this PR. |
|
Yeah, and one benefit is that changes won't be lost even if Dolphin crashes. (Right now, I believe that changes will still be lost if Dolphin crashes, since the entire SYSCONF is restored.) But it's more complex and I don't know if it's worth handling that (somewhat) rare situation. |
|
Yes, I agree with all of those points. |
When booting a Wii game, Dolphin can overwrite certain settings in the SYSCONF file, such as turning off PAL60 for NTSC games. Normally, these settings get reverted at the end of emulation, but this does not happen if Dolphin crashes or force quits in some other way. (Personally, I have a tendency to use Visual Studio's Stop Debugging button, which kills the process...) Dolphin also overwrites certain values in setting.txt when booting a Wii game. Unlike with SYSCONF, we currently make no effort to preserve the original values in this file. This change fixes both of these problems by copying SYSCONF and setting.txt to the Backup folder when booting a Wii game, and then copying them back either when launching Dolphin (in case the previous run of Dolphin crashed) or when ending emulation.
1fbb6c9
to
1b84406
Compare
When booting a Wii game, Dolphin can overwrite certain settings in the SYSCONF file, such as turning off PAL60 for NTSC games. Normally, these settings get reverted at the end of emulation, but this does not happen if Dolphin crashes or force quits in some other way. (Personally, I have a tendency to use Visual Studio's Stop Debugging button, which kills the process...)
Dolphin also overwrites certain values in setting.txt when booting a Wii game. Unlike with SYSCONF, we currently make no effort to preserve the original values in this file.
This change fixes both of these problems by copying SYSCONF and setting.txt to the Backup folder when booting a Wii game, and then copying them back either when launching Dolphin (in case the previous run of Dolphin crashed) or when ending emulation.