dmnt: only init roDmnt when we can

This commit is contained in:
Michael Scire 2019-04-24 05:19:37 -07:00
parent 3a8f9114fc
commit d44b91826d

View File

@ -82,10 +82,13 @@ void __appInit(void) {
fatalSimple(rc); fatalSimple(rc);
} }
/* TODO: We provide this on every sysver via ro. Do we need a shim? */
if (GetRuntimeFirmwareVersion() >= FirmwareVersion_300) {
rc = roDmntInitialize(); rc = roDmntInitialize();
if (R_FAILED(rc)) { if (R_FAILED(rc)) {
fatalSimple(rc); fatalSimple(rc);
} }
}
rc = nsdevInitialize(); rc = nsdevInitialize();
if (R_FAILED(rc)) { if (R_FAILED(rc)) {