mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Fixed the names for nsdevLaunchApplication, nsdevLaunchApplicationWithStorageId, nsdevGetRunningApplicationProcessId, and nsdevSetCurrentApplicationRightsEnvironmentCanBeActive. Updated the sysver checks for nsdevIsSystemMemoryResourceLimitBoosted since it was removed with [9.0.0+].
This commit is contained in:
parent
87332e2685
commit
f4fe3376bd
@ -90,12 +90,12 @@ void nsdevExit(void);
|
|||||||
Result nsdevLaunchProgram(u64* out_pid, const NsLaunchProperties* properties, u32 flags);
|
Result nsdevLaunchProgram(u64* out_pid, const NsLaunchProperties* properties, u32 flags);
|
||||||
Result nsdevTerminateProcess(u64 pid);
|
Result nsdevTerminateProcess(u64 pid);
|
||||||
Result nsdevTerminateProgram(u64 tid);
|
Result nsdevTerminateProgram(u64 tid);
|
||||||
Result nsdevGetShellEvent(Event* out); // Autoclear for nsdevShellEvent is always true.
|
Result nsdevGetShellEvent(Event* out); ///< Autoclear for nsdevShellEvent is always true.
|
||||||
Result nsdevGetShellEventInfo(NsShellEventInfo* out);
|
Result nsdevGetShellEventInfo(NsShellEventInfo* out);
|
||||||
Result nsdevTerminateApplication(void);
|
Result nsdevTerminateApplication(void);
|
||||||
Result nsdevPrepareLaunchProgramFromHost(NsLaunchProperties* out, const char* path, size_t path_len);
|
Result nsdevPrepareLaunchProgramFromHost(NsLaunchProperties* out, const char* path, size_t path_len);
|
||||||
Result nsdevLaunchApplication(u64* out_pid, u64 app_title_id, u32 flags);
|
Result nsdevLaunchApplicationForDevelop(u64* out_pid, u64 app_title_id, u32 flags);
|
||||||
Result nsdevLaunchApplicationWithStorageId(u64* out_pid, u64 app_title_id, u32 flags, u8 app_storage_id, u8 patch_storage_id);
|
Result nsdevLaunchApplicationWithStorageIdForDevelop(u64* out_pid, u64 app_title_id, u32 flags, u8 app_storage_id, u8 patch_storage_id);
|
||||||
Result nsdevIsSystemMemoryResourceLimitBoosted(bool* out);
|
Result nsdevIsSystemMemoryResourceLimitBoosted(bool* out); ///< [6.0.0-8.1.0]
|
||||||
Result nsdevGetRunningApplicationProcessId(u64* out_pid);
|
Result nsdevGetRunningApplicationProcessIdForDevelop(u64* out_pid);
|
||||||
Result nsdevSetCurrentApplicationRightsEnvironmentCanBeActive(bool can_be_active);
|
Result nsdevSetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop(bool can_be_active);
|
||||||
|
@ -642,7 +642,7 @@ Result nsdevPrepareLaunchProgramFromHost(NsLaunchProperties* out, const char* pa
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result nsdevLaunchApplication(u64* out_pid, u64 app_title_id, u32 flags) {
|
Result nsdevLaunchApplicationForDevelop(u64* out_pid, u64 app_title_id, u32 flags) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
@ -685,7 +685,7 @@ Result nsdevLaunchApplication(u64* out_pid, u64 app_title_id, u32 flags) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result nsdevLaunchApplicationWithStorageId(u64* out_pid, u64 app_title_id, u32 flags, u8 app_storage_id, u8 patch_storage_id) {
|
Result nsdevLaunchApplicationWithStorageIdForDevelop(u64* out_pid, u64 app_title_id, u32 flags, u8 app_storage_id, u8 patch_storage_id) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
@ -733,7 +733,7 @@ Result nsdevLaunchApplicationWithStorageId(u64* out_pid, u64 app_title_id, u32 f
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result nsdevIsSystemMemoryResourceLimitBoosted(bool* out) {
|
Result nsdevIsSystemMemoryResourceLimitBoosted(bool* out) {
|
||||||
if (hosversionBefore(6,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
if (hosversionBefore(6,0,0) || hosversionAtLeast(9,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
@ -771,7 +771,7 @@ Result nsdevIsSystemMemoryResourceLimitBoosted(bool* out) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result nsdevGetRunningApplicationProcessId(u64* out_pid) {
|
Result nsdevGetRunningApplicationProcessIdForDevelop(u64* out_pid) {
|
||||||
if (hosversionBefore(6,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
if (hosversionBefore(6,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
@ -810,7 +810,7 @@ Result nsdevGetRunningApplicationProcessId(u64* out_pid) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result nsdevSetCurrentApplicationRightsEnvironmentCanBeActive(bool can_be_active) {
|
Result nsdevSetCurrentApplicationRightsEnvironmentCanBeActiveForDevelop(bool can_be_active) {
|
||||||
if (hosversionBefore(6,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
if (hosversionBefore(6,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
||||||
|
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
|
Loading…
Reference in New Issue
Block a user