pgl: update with client C++ bindings

This commit is contained in:
Michael Scire 2020-04-15 20:07:20 -07:00
parent e14dc18bd3
commit eca2b453ae
5 changed files with 140 additions and 5 deletions

View file

@ -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. */