dolphin/Source/Core/UICommon
JosJuice 1b844067aa Back up Wii setting.txt and SYSCONF while emulating
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.
2020-03-16 21:04:19 +01:00
..
ResourcePack Use pre-increment for iterators instead of post-increment. 2019-12-29 23:45:02 -05:00
AutoUpdate.cpp Core: Fixup AutoUpdateChecker::TriggerUpdate on Windows: 2019-07-22 19:29:50 +02:00
AutoUpdate.h AutoUpdater: support optionally restarting Dolphin after update 2018-03-23 11:10:25 +01:00
CMakeLists.txt UICommon: Make use of fmt where applicable 2019-11-23 19:41:40 -05:00
CommandLineParse.cpp Disable render to main when using batch mode 2019-10-29 18:32:43 +01:00
CommandLineParse.h UICommon: Add missing header guards 2019-06-17 18:39:44 -04:00
Disassembler.cpp UICommon: Make use of fmt where applicable 2019-11-23 19:41:40 -05:00
Disassembler.h UICommon: Make use of fmt where applicable 2019-11-23 19:41:40 -05:00
DiscordPresence.cpp UICommon: Make use of fmt where applicable 2019-11-23 19:41:40 -05:00
DiscordPresence.h Force IPv4 on external IP addresses 2018-08-13 21:17:38 -04:00
GameFile.cpp StringUtil: Add PathToFileName function 2020-03-16 21:03:34 +01:00
GameFile.h GameFile: Use enums for custom/length parameters 2019-09-25 12:25:59 +02:00
GameFileCache.cpp GameFile: Support HBC-style XML metadata 2019-09-25 12:25:33 +02:00
GameFileCache.h DolphinQt: Implement "Purge Game List Cache" 2018-10-25 08:29:54 +02:00
NetPlayIndex.cpp UICommon/NetPlayIndex: Take std::vector by const reference in ParseResponse() 2019-08-04 12:36:52 -04:00
NetPlayIndex.h UICommon/NetPlayIndex: Use a std::string_view for EncryptID()/DecryptID() 2019-08-04 12:32:33 -04:00
UICommon.cpp Back up Wii setting.txt and SYSCONF while emulating 2020-03-16 21:04:19 +01:00
UICommon.h UICommon: Avoid including Xrandr.h 2018-04-14 17:14:38 +02:00
UICommon.vcxproj Add an ARM64 target to Visual Studio projects 2019-12-28 19:20:41 +10:00
USBUtils.cpp UICommon: Make use of fmt where applicable 2019-11-23 19:41:40 -05:00
USBUtils.h Move libusb context initialization to on first use 2017-02-07 00:47:21 +01:00
VideoUtils.cpp UICommon/VideoUtils.cpp: Add missing include 2019-05-08 21:00:23 +02:00
VideoUtils.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00
X11Utils.cpp UICommon: Make use of fmt where applicable 2019-11-23 19:41:40 -05:00
X11Utils.h Reformat repo to clang-format 7.0 rules 2019-05-06 18:48:04 +00:00