mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
creport: update for 10.0.0
This commit is contained in:
parent
36039ddbb7
commit
11f840b1e3
2 changed files with 9 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
||||||
"erpt:c",
|
"erpt:c",
|
||||||
"fatal:u",
|
"fatal:u",
|
||||||
"ns:dev",
|
"ns:dev",
|
||||||
|
"pgl",
|
||||||
"time:*",
|
"time:*",
|
||||||
"fsp-srv"
|
"fsp-srv"
|
||||||
],
|
],
|
||||||
|
|
|
@ -108,7 +108,14 @@ int main(int argc, char **argv) {
|
||||||
g_crash_report.SaveReport();
|
g_crash_report.SaveReport();
|
||||||
|
|
||||||
/* Try to terminate the process. */
|
/* Try to terminate the process. */
|
||||||
{
|
if (hos::GetVersion() >= hos::Version_10_0_0) {
|
||||||
|
/* On 10.0.0+, use pgl to terminate. */
|
||||||
|
sm::ScopedServiceHolder<pglInitialize, pglExit> pgl_holder;
|
||||||
|
if (pgl_holder) {
|
||||||
|
pglTerminateProcess(static_cast<u64>(crashed_pid));
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
/* On < 10.0.0, use ns:dev to terminate. */
|
||||||
sm::ScopedServiceHolder<nsdevInitialize, nsdevExit> ns_holder;
|
sm::ScopedServiceHolder<nsdevInitialize, nsdevExit> ns_holder;
|
||||||
if (ns_holder) {
|
if (ns_holder) {
|
||||||
nsdevTerminateProcess(static_cast<u64>(crashed_pid));
|
nsdevTerminateProcess(static_cast<u64>(crashed_pid));
|
||||||
|
|
Loading…
Reference in a new issue