2019-07-18 04:04:00 +01:00
|
|
|
/**
|
|
|
|
* @file ldr_ams.h
|
|
|
|
* @brief Loader (ldr:*) IPC wrapper for Atmosphere extensions.
|
|
|
|
* @author SciresM
|
|
|
|
* @copyright libnx Authors
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <switch.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-11-21 12:03:19 +00:00
|
|
|
typedef struct {
|
|
|
|
u64 keys_down;
|
|
|
|
u64 flags;
|
|
|
|
} CfgOverrideStatus;
|
|
|
|
|
2019-10-28 04:43:01 +00:00
|
|
|
Result ldrPmAtmosphereHasLaunchedProgram(bool *out, u64 program_id);
|
|
|
|
Result ldrDmntAtmosphereHasLaunchedProgram(bool *out, u64 program_id);
|
2019-07-18 04:04:00 +01:00
|
|
|
|
2019-11-21 12:03:19 +00:00
|
|
|
Result ldrPmAtmosphereGetProgramInfo(LoaderProgramInfo *out, CfgOverrideStatus *out_status, const NcmProgramLocation *loc);
|
|
|
|
Result ldrPmAtmospherePinProgram(u64 *out, const NcmProgramLocation *loc, const CfgOverrideStatus *status);
|
|
|
|
|
2019-07-18 04:04:00 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|