mirror of
https://github.com/Takiiiiiiii/strato.git
synced 2025-07-17 08:46:39 +00:00
Don't show dialog when exiting gracefully
This commit is contained in:
@ -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))
|
||||||
|
Reference in New Issue
Block a user