NS services: Difference between revisions

Line 2,659: 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,687: Line 2,687:
| 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]]
Line 2,716: 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,733: 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,768: Line 2,763:
[19.0.0+] Now returns a total of 0x80-bytes of output.
[19.0.0+] Now returns a total of 0x80-bytes of output.


== LaunchApplicationForDevelop ==
== LaunchApplication ==
Takes a total of 0x50-bytes of input. Returns a total of 8-bytes of output.
Takes a total of 0x50-bytes of input. Returns a total of 8-bytes of output.