NS services: Difference between revisions

No edit summary
Line 2,255: Line 2,255:
| 7 || [1.0.0-9.2.0] [[#PrepareLaunchProgramFromHost]]
| 7 || [1.0.0-9.2.0] [[#PrepareLaunchProgramFromHost]]
|-
|-
| 8 || [[#LaunchApplicationForDevelop]]
| 8 || [10.0.0+] [[#LaunchApplicationFromHost]] ([1.0.0-9.2.0] [[#LaunchApplicationForDevelop]])
|-
|-
| 9 || [[#LaunchApplicationWithStorageIdForDevelop]]
| 9 || [[#LaunchApplicationWithStorageIdForDevelop]]
Line 2,261: Line 2,261:
| 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+] [[#GetRunningApplicationProcessIdForDevelop]]
|-
|-
| 12 || [6.0.0+] SetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop
| 12 || [6.0.0+] [[#SetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop]]
|-
|-
| 13 || [9.0.0+] [[#CreateApplicationResourceForDevelop]]
| 13 || [9.0.0+] [[#CreateApplicationResourceForDevelop]]
Line 2,269: Line 2,269:
| 14 || [9.0.0+] [[#IsPreomiaForDevelop]]
| 14 || [9.0.0+] [[#IsPreomiaForDevelop]]
|-
|-
| 15 || [10.0.0+] GetApplicationProgramIdFromHost
| 15 || [10.0.0+] [[#GetApplicationProgramIdFromHost]]
|}
|}


Line 2,288: Line 2,288:


== TerminateApplication ==
== TerminateApplication ==
Calls "pm:shell" [[Process_Manager_services#pm:shell|GetApplicationProcessIdForShell]] and sends PID to [[Process_Manager_services#pm:shell|TerminateProcess]].
Calls "pm:shell" [[Process_Manager_services#pm:shell|GetApplicationProcessIdForShell]] and sends the ProcessId to [[Process_Manager_services#pm:shell|TerminateProcess]].


== PrepareLaunchProgramFromHost ==
== PrepareLaunchProgramFromHost ==
Line 2,296: Line 2,296:


== LaunchApplicationForDevelop ==
== LaunchApplicationForDevelop ==
Takes an input u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]] and [[NCM_services#ApplicationId|ApplicationId]], returns an output u64 PID.
Takes an input u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]] and [[NCM_services#ApplicationId|ApplicationId]], returns an output u64 ProcessId.


[10.0.0+] This now takes an input u32, a type-0x5 input buffer, and returns an output u64.
Same as [[#LaunchApplicationWithStorageIdForDevelop]] except the last two params passed to the internal vtable funcptr call are value 0x6, instead of from the command input.


Same as LaunchApplicationWithStorageId except the last two params passed to the internal vtable funcptr call are value 0x6, instead of from the command input.
== LaunchApplicationFromHost ==
Takes an input u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]] and a type-0x5 input buffer containing the [[Filesystem_services|ContentPath]]. Returns an output u64 ProcessId.


== LaunchApplicationWithStorageIdForDevelop ==
== LaunchApplicationWithStorageIdForDevelop ==
Takes 2 input u8s, an u32 [[Process_Manager_services#LaunchFlags|LaunchFlags]], and an [[NCM_services#ApplicationId|ApplicationId]]. Returns an output u64 PID.
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.


Launches an application title which is registered with NS.
Launches an application title which is registered with NS.
== GetRunningApplicationProcessIdForDevelop ==
Returns an output u64 ProcessId.
== SetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop ==
Takes an input bool. No output.


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


== IsPreomiaForDevelop ==
== IsPreomiaForDevelop ==
Takes an u64 [[NCM_services#ProgramId|ProgramId]]. Returns a bool.
Takes an input u64 [[NCM_services#ProgramId|ProgramId]]. Returns a bool.
 
== GetApplicationProgramIdFromHost ==
Takes a type-0x5 input buffer containing the [[Filesystem_services|ContentPath]]. Returns an u64 [[NCM_services#ProgramId|ProgramId]].


= VersionListData =
= VersionListData =