mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-09 22:56:35 +00:00
dmnt: only init roDmnt when we can
This commit is contained in:
parent
3a8f9114fc
commit
d44b91826d
1 changed files with 6 additions and 3 deletions
|
@ -82,9 +82,12 @@ void __appInit(void) {
|
||||||
fatalSimple(rc);
|
fatalSimple(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = roDmntInitialize();
|
/* TODO: We provide this on every sysver via ro. Do we need a shim? */
|
||||||
if (R_FAILED(rc)) {
|
if (GetRuntimeFirmwareVersion() >= FirmwareVersion_300) {
|
||||||
fatalSimple(rc);
|
rc = roDmntInitialize();
|
||||||
|
if (R_FAILED(rc)) {
|
||||||
|
fatalSimple(rc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = nsdevInitialize();
|
rc = nsdevInitialize();
|
||||||
|
|
Loading…
Reference in a new issue