Don't show dialog when exiting gracefully

This commit is contained in:
PabloG02
2023-06-29 18:43:35 +02:00
committed by Niccolò Betto
parent 17ebf18f6c
commit 95de8f9d59

View File

@ -29,7 +29,9 @@ namespace skyline::kernel::type {
void KProcess::Kill(bool join, bool all, bool disableCreation) { void KProcess::Kill(bool join, bool all, bool disableCreation) {
Logger::Warn("Killing {}{}KProcess{}", join ? "and joining " : "", all ? "all threads in " : "HOS-1 in ", disableCreation ? " with new thread creation disabled" : ""); Logger::Warn("Killing {}{}KProcess{}", join ? "and joining " : "", all ? "all threads in " : "HOS-1 in ", disableCreation ? " with new thread creation disabled" : "");
Logger::EmulationContext.Flush(); Logger::EmulationContext.Flush();
state.jvm->reportCrash(); // disableCreation is set only when gracefully exiting, it being false means an exception/crash occurred
if (!disableCreation)
state.jvm->reportCrash();
bool expected{false}; bool expected{false};
if (!join && !alreadyKilled.compare_exchange_strong(expected, true)) if (!join && !alreadyKilled.compare_exchange_strong(expected, true))