From 262322d2e7375519da03c6b18d82acff3ad2f830 Mon Sep 17 00:00:00 2001 From: Reiko Asakura Date: Wed, 5 May 2021 21:14:22 -0400 Subject: Add sceNpGetEnvironment --- include/user/np/np_common.h | 25 +++++++++++++++++++++++++ nids/360/SceNpCommon.yml | 1 + 2 files changed, 26 insertions(+) create mode 100644 include/user/np/np_common.h diff --git a/include/user/np/np_common.h b/include/user/np/np_common.h new file mode 100644 index 0000000..2495ded --- /dev/null +++ b/include/user/np/np_common.h @@ -0,0 +1,25 @@ +/* + Vita Development Suite Libraries +*/ + +#ifndef _VDSUITE_USER_NP_NP_COMMON_H +#define _VDSUITE_USER_NP_NP_COMMON_H + +#include_next + +#define SCE_NP_ENVIRONMENT_MAX_LENGTH 15 + +#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) +extern "C" { +#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */ + +int +sceNpGetEnvironment( + char *env + ); + +#if defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) +} +#endif /* defined(_LANGUAGE_C_PLUS_PLUS)||defined(__cplusplus)||defined(c_plusplus) */ + +#endif /* _VDSUITE_USER_NP_NP_COMMON_H */ diff --git a/nids/360/SceNpCommon.yml b/nids/360/SceNpCommon.yml index 6a45b81..aeaa58e 100644 --- a/nids/360/SceNpCommon.yml +++ b/nids/360/SceNpCommon.yml @@ -18,5 +18,6 @@ modules: sceNpCmpNpId: 0xFB8D82E5 sceNpCmpNpIdInOrder: 0x6BC8150A sceNpCmpOnlineId: 0x8327C26F + sceNpGetEnvironment: 0xAD6403E0 sceNpGetPlatformType: 0xE9A003DE sceNpSetPlatformType: 0xE807D0BC -- cgit v1.2.3