From d44b91826dee7ba534df73300278d6e28261c06d Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Wed, 24 Apr 2019 05:19:37 -0700 Subject: [PATCH] dmnt: only init roDmnt when we can --- stratosphere/dmnt/source/dmnt_main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/stratosphere/dmnt/source/dmnt_main.cpp b/stratosphere/dmnt/source/dmnt_main.cpp index 6745a8673..ce140113e 100644 --- a/stratosphere/dmnt/source/dmnt_main.cpp +++ b/stratosphere/dmnt/source/dmnt_main.cpp @@ -82,9 +82,12 @@ void __appInit(void) { fatalSimple(rc); } - rc = roDmntInitialize(); - if (R_FAILED(rc)) { - fatalSimple(rc); + /* TODO: We provide this on every sysver via ro. Do we need a shim? */ + if (GetRuntimeFirmwareVersion() >= FirmwareVersion_300) { + rc = roDmntInitialize(); + if (R_FAILED(rc)) { + fatalSimple(rc); + } } rc = nsdevInitialize();