erpt: launch sprofile only on 13.0.0+

This commit is contained in:
Michael Scire 2021-09-16 16:57:04 -07:00
parent 2554e0c9f1
commit 91c3ed9704

View File

@ -201,11 +201,14 @@ int main(int argc, char **argv)
/* Start the erpt server. */ /* Start the erpt server. */
R_ABORT_UNLESS(erpt::srv::InitializeAndStartService()); R_ABORT_UNLESS(erpt::srv::InitializeAndStartService());
/* Launch sprofile on 13.0.0+ */
if (hos::GetVersion() >= hos::Version_13_0_0) {
/* Initialize the sprofile server. */ /* Initialize the sprofile server. */
sprofile::srv::Initialize(); sprofile::srv::Initialize();
/* Start the sprofile ipc server. */ /* Start the sprofile ipc server. */
sprofile::srv::StartIpcServer(); sprofile::srv::StartIpcServer();
}
/* Wait forever. */ /* Wait forever. */
erpt::srv::Wait(); erpt::srv::Wait();