creport: update for 10.0.0
This commit is contained in:
@@ -108,7 +108,14 @@ int main(int argc, char **argv) {
|
||||
g_crash_report.SaveReport();
|
||||
|
||||
/* 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;
|
||||
if (ns_holder) {
|
||||
nsdevTerminateProcess(static_cast<u64>(crashed_pid));
|
||||
|
||||
Reference in New Issue
Block a user