NS services: Difference between revisions

No edit summary
(2 intermediate revisions by one other user not shown)
Line 934: Line 934:
| 1801 || GetLastNotificationInfoCount
| 1801 || GetLastNotificationInfoCount
|-
|-
| 1802 || ListLastNotificationInfo
| 1802 || [[#ListLastNotificationInfo]]
|-
|-
| 1803 || [3.0.0+] ListNotificationTask
| 1803 || [3.0.0+] [[#ListNotificationTask]]
|-
|-
| 1900 || [3.0.0-12.1.0] IsActiveAccount
| 1900 || [3.0.0-12.1.0] IsActiveAccount
Line 1,464: Line 1,464:


Compares the input ApplicationId with the value of [[System_Settings|system-setting]] <code>ns.application!auto_deletable_application_id_on_not_enough_space</code>, with the bool being set to the comparsion result.
Compares the input ApplicationId with the value of [[System_Settings|system-setting]] <code>ns.application!auto_deletable_application_id_on_not_enough_space</code>, with the bool being set to the comparsion result.
==== ListLastNotificationInfo ====
Takes a type-0x6 buffer containing an array with struct entry size 0x90-bytes. Returns 4-bytes of output.
[19.0.0+] The struct size is now 0x98-bytes.
==== ListNotificationTask ====
Takes a type-0x6 buffer containing an array with struct entry size 0xB0-bytes. Returns 4-bytes of output.
[19.0.0+] The struct size is now 0xB8-bytes.


==== RequestDownloadApplicationPrepurchasedRights ====
==== RequestDownloadApplicationPrepurchasedRights ====
Line 2,649: Line 2,659:
| 7 || [1.0.0-9.2.0] [[#PrepareLaunchProgramFromHost]]
| 7 || [1.0.0-9.2.0] [[#PrepareLaunchProgramFromHost]]
|-
|-
| 8 || [10.0.0-17.0.1] [[#LaunchApplicationFromHost]] ([1.0.0-9.2.0] [[#LaunchApplicationForDevelop]])
| 8 || [10.0.0-17.0.1] [[#LaunchApplicationFromHost]] ([1.0.0-9.2.0] LaunchApplication)
|-
|-
| 9 || [1.0.0-17.0.1] [[#LaunchApplicationWithStorageIdForDevelop]]
| 9 || [1.0.0-17.0.1] [[#LaunchApplicationWithStorageId]]
|-
|-
| 10 || [6.0.0-8.1.0] [[#IsSystemMemoryResourceLimitBoosted]]
| 10 || [6.0.0-8.1.0] [[#IsSystemMemoryResourceLimitBoosted]]
|-
|-
| 11 || [6.0.0+] [[#GetRunningApplicationProcessIdForDevelop]]
| 11 || [6.0.0+] [[#GetRunningApplicationProcessId]]
|-
|-
| 12 || [6.0.0+] [[#SetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop]]
| 12 || [6.0.0+] [[#SetCurrentApplicationRightsEnvironmentCanBeActive]]
|-
|-
| 13 || [9.0.0+] [[#CreateApplicationResourceForDevelop]]
| 13 || [9.0.0+] [[#CreateApplicationResource]]
|-
|-
| 14 || [9.0.0+] [[#IsPreomiaForDevelop]]
| 14 || [9.0.0+] [[#IsPreomia]]
|-
|-
| 15 || [10.0.0-17.0.1] [[#GetApplicationProgramIdFromHost]]
| 15 || [10.0.0-17.0.1] [[#GetApplicationProgramIdFromHost]]
Line 2,675: Line 2,685:
| 20 || [14.0.0+] GetProgramId
| 20 || [14.0.0+] GetProgramId
|-
|-
| 21 || [18.0.0+] PrepareLaunchApplication
| 21 || [18.0.0+] [[#PrepareLaunchApplication]]
|-
|-
| 22 || [18.0.0+] LaunchApplicationForDevelop
| 22 || [18.0.0+] [[#LaunchApplication]]
|-
|-
| 23 || [18.0.0+] GetProgramIdByApplicationLaunchInfo
| 23 || [18.0.0+] [[#GetProgramIdByApplicationLaunchInfo]]
|-
|-
| 24 || [18.0.0+] DestroyApplicationLaunchPreparation
| 24 || [18.0.0+] DestroyApplicationLaunchPreparation
Line 2,706: Line 2,716:


Calls [[NCM_services#IPathResolverForStorage|IPathResolverForStorage]] Set...NcaPath functions.
Calls [[NCM_services#IPathResolverForStorage|IPathResolverForStorage]] Set...NcaPath functions.
== LaunchApplicationForDevelop ==
Takes an input u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]] and [[NCM_services#ApplicationId|ApplicationId]], returns an output u64 ProcessId.
Same as [[#LaunchApplicationWithStorageIdForDevelop]] except the last two params passed to the internal vtable funcptr call are value 0x6, instead of from the command input.


== LaunchApplicationFromHost ==
== LaunchApplicationFromHost ==
Takes an input u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]] and a type-0x5 input buffer containing the [[Filesystem_services#FspPath|FspPath]]. Returns an output u64 ProcessId.
Takes an input u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]] and a type-0x5 input buffer containing the [[Filesystem_services#FspPath|FspPath]]. Returns an output u64 ProcessId.


== LaunchApplicationWithStorageIdForDevelop ==
== LaunchApplicationWithStorageId ==
Takes 2 input u8 [[NCM_services#StorageId|StorageIds]], an u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]], and an [[NCM_services#ApplicationId|ApplicationId]]. Returns an output u64 ProcessId.
Takes 2 input u8 [[NCM_services#StorageId|StorageIds]], an u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]], and an [[NCM_services#ApplicationId|ApplicationId]]. Returns an output u64 ProcessId.


Line 2,723: Line 2,728:
No input. Returns a bool.
No input. Returns a bool.


== GetRunningApplicationProcessIdForDevelop ==
== GetRunningApplicationProcessId ==
Returns an output u64 ProcessId.
Returns an output u64 ProcessId.


== SetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop ==
== SetCurrentApplicationRightsEnvironmentCanBeActive ==
Takes an input bool. No output.
Takes an input bool. No output.


== CreateApplicationResourceForDevelop ==
== CreateApplicationResource ==
Takes an input u32 (1 = Preomia/MicroApplication). Returns an [[#IApplicationResource]].
Takes an input u32 (1 = Preomia/MicroApplication). Returns an [[#IApplicationResource]].


== IsPreomiaForDevelop ==
== IsPreomia ==
Takes an input u64 [[NCM_services#ProgramId|ProgramId]]. Returns a bool.
Takes an input u64 [[NCM_services#ProgramId|ProgramId]]. Returns a bool.


Line 2,750: Line 2,755:
== GetLaunchResult ==
== GetLaunchResult ==
[18.0.0+] Now takes a total of 0x50 bytes of input.
[18.0.0+] Now takes a total of 0x50 bytes of input.
[19.0.0+] Now takes a total of 0x80 bytes of input.
== PrepareLaunchApplication ==
Takes a total of 0x10-bytes of input. Returns a total of 0x50-bytes of output.
[19.0.0+] Now returns a total of 0x80-bytes of output.
== LaunchApplication ==
Takes a total of 0x50-bytes of input. Returns a total of 8-bytes of output.
[19.0.0+] Now takes a total of 0x80 bytes of input.
== GetProgramIdByApplicationLaunchInfo ==
Takes a total of 0x50-bytes of input. Returns a total of 8-bytes of output.


[19.0.0+] Now takes a total of 0x80 bytes of input.
[19.0.0+] Now takes a total of 0x80 bytes of input.