mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 13:31:18 +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
|
@ -172,6 +172,7 @@ enum class CafeConsoleLanguage
|
|||
};
|
||||
ENABLE_ENUM_ITERATORS(CafeConsoleLanguage, CafeConsoleLanguage::JA, CafeConsoleLanguage::TW);
|
||||
|
||||
#if BOOST_OS_WINDOWS
|
||||
enum class CrashDump
|
||||
{
|
||||
Disabled,
|
||||
|
@ -179,6 +180,14 @@ enum class CrashDump
|
|||
Full
|
||||
};
|
||||
ENABLE_ENUM_ITERATORS(CrashDump, CrashDump::Disabled, CrashDump::Full);
|
||||
#elif BOOST_OS_UNIX
|
||||
enum class CrashDump
|
||||
{
|
||||
Disabled,
|
||||
Enabled
|
||||
};
|
||||
ENABLE_ENUM_ITERATORS(CrashDump, CrashDump::Disabled, CrashDump::Enabled);
|
||||
#endif
|
||||
|
||||
template <>
|
||||
struct fmt::formatter<PrecompiledShaderOption> : formatter<string_view> {
|
||||
|
@ -290,6 +299,7 @@ struct fmt::formatter<CafeConsoleLanguage> : formatter<string_view> {
|
|||
}
|
||||
};
|
||||
|
||||
#if BOOST_OS_WINDOWS
|
||||
template <>
|
||||
struct fmt::formatter<CrashDump> : formatter<string_view> {
|
||||
template <typename FormatContext>
|
||||
|
@ -306,6 +316,23 @@ struct fmt::formatter<CrashDump> : formatter<string_view> {
|
|||
return formatter<string_view>::format(name, ctx);
|
||||
}
|
||||
};
|
||||
#elif BOOST_OS_UNIX
|
||||
template <>
|
||||
struct fmt::formatter<CrashDump> : formatter<string_view> {
|
||||
template <typename FormatContext>
|
||||
auto format(const CrashDump v, FormatContext &ctx) {
|
||||
string_view name;
|
||||
switch (v)
|
||||
{
|
||||
case CrashDump::Disabled: name = "Disabled"; break;
|
||||
case CrashDump::Enabled: name = "Enabled"; break;
|
||||
default: name = "unknown"; break;
|
||||
|
||||
}
|
||||
return formatter<string_view>::format(name, ctx);
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
struct CemuConfig
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue