mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-03 08:08:39 -04:00
pgl: update with client C++ bindings
This commit is contained in:
parent
e14dc18bd3
commit
eca2b453ae
5 changed files with 140 additions and 5 deletions
|
@ -110,9 +110,9 @@ int main(int argc, char **argv) {
|
|||
/* 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;
|
||||
sm::ScopedServiceHolder<pgl::Initialize, pgl::Finalize> pgl_holder;
|
||||
if (pgl_holder) {
|
||||
pglTerminateProcess(static_cast<u64>(crashed_pid));
|
||||
pgl::TerminateProcess(crashed_pid);
|
||||
}
|
||||
} else {
|
||||
/* On < 10.0.0, use ns:dev to terminate. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue