mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-05 14:31:17 +12:00
Posix/Linux: Add setting to disable coredumps
This commit is contained in:
parent
35afb99c99
commit
6ecc4be0da
4 changed files with 102 additions and 22 deletions
|
@ -316,7 +316,11 @@ void CemuConfig::Load(XMLConfigParser& parser)
|
|||
|
||||
// debug
|
||||
auto debug = parser.get("Debug");
|
||||
crash_dump = debug.get("CrashDump", crash_dump);
|
||||
#if BOOST_OS_WINDOWS
|
||||
crash_dump = debug.get("CrashDumpWindows", crash_dump);
|
||||
#elif BOOST_OS_UNIX
|
||||
crash_dump = debug.get("CrashDumpUnix", crash_dump);
|
||||
#endif
|
||||
|
||||
// input
|
||||
auto input = parser.get("Input");
|
||||
|
@ -487,7 +491,11 @@ void CemuConfig::Save(XMLConfigParser& parser)
|
|||
|
||||
// debug
|
||||
auto debug = config.set("Debug");
|
||||
debug.set("CrashDump", crash_dump.GetValue());
|
||||
#if BOOST_OS_WINDOWS
|
||||
debug.set("CrashDumpWindows", crash_dump.GetValue());
|
||||
#elif BOOST_OS_UNIX
|
||||
debug.set("CrashDumpUnix", crash_dump.GetValue());
|
||||
#endif
|
||||
|
||||
// input
|
||||
auto input = config.set("Input");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue