ns: Added nsGetApplicationManagerInterface(), and removed automatic IApplicationManagerInterface init on [3.0.0+]. Updated all IApplicationManagerInterface cmds to use service-session IApplicationManagerInterface on pre-3.0.0, otherwise nsGetApplicationManagerInterface() is used. Apps which use nsGetServiceSession_ApplicationManagerInterface must now use nsGetApplicationManagerInterface if running on [3.0.0+].

This commit is contained in:
yellows8 2020-03-01 15:06:15 -05:00
parent 763b32060a
commit af2b4ab7c3
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43
2 changed files with 495 additions and 88 deletions

View File

@ -241,7 +241,7 @@ void nsExit(void);
/// Gets the Service object for the actual ns:* service session. Only initialized on [3.0.0+], on pre-3.0.0 see \ref nsGetServiceSession_ApplicationManagerInterface.
Service* nsGetServiceSession_GetterInterface(void);
/// Gets the Service object for IApplicationManagerInterface.
/// Gets the Service object for IApplicationManagerInterface. Only initialized on pre-3.0.0, on [3.0.0+] use \ref nsGetApplicationManagerInterface.
Service* nsGetServiceSession_ApplicationManagerInterface(void);
/// Gets the Service object for IReadOnlyApplicationControlDataInterface via the cmd for that.
@ -256,6 +256,10 @@ Result nsGetECommerceInterface(Service* srv_out);
/// Only available on [3.0.0+].
Result nsGetFactoryResetInterface(Service* srv_out);
/// Gets the Service object for IApplicationManagerInterface via the cmd for that.
/// Only available on [3.0.0+], on prior sysvers use \ref nsGetServiceSession_ApplicationManagerInterface.
Result nsGetApplicationManagerInterface(Service* srv_out);
/// Gets the Service object for IDownloadTaskInterface via the cmd for that.
/// Only available on [3.0.0+].
Result nsGetDownloadTaskInterface(Service* srv_out);

File diff suppressed because it is too large Load Diff