From db7554293e552352260fe6c9b9914059e25c95bb Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 30 Oct 2017 19:09:59 +0100 Subject: [PATCH] Added MCP_GetDeviceId --- source/os_functions.c | 2 ++ source/os_functions.h | 1 + 2 files changed, 3 insertions(+) diff --git a/source/os_functions.c b/source/os_functions.c index 0409f86..64a8769 100644 --- a/source/os_functions.c +++ b/source/os_functions.c @@ -143,6 +143,7 @@ EXPORT_DECL(s32, OSIsAddressValid, const void *ptr); EXPORT_DECL(s32, MCP_Open, void); EXPORT_DECL(s32, MCP_Close, s32 handle); EXPORT_DECL(s32, MCP_GetOwnTitleInfo, s32 handle, void * data); +EXPORT_DECL(void*, MCP_GetDeviceId, s32 handle, u32 * id); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Loader functions (not real rpl) @@ -327,6 +328,7 @@ void InitOSFunctionPointers(void) OS_FIND_EXPORT(coreinit_handle, MCP_Open); OS_FIND_EXPORT(coreinit_handle, MCP_Close); OS_FIND_EXPORT(coreinit_handle, MCP_GetOwnTitleInfo); + OS_FIND_EXPORT(coreinit_handle, MCP_GetDeviceId); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! Memory functions diff --git a/source/os_functions.h b/source/os_functions.h index 5bb1381..d53146c 100644 --- a/source/os_functions.h +++ b/source/os_functions.h @@ -226,6 +226,7 @@ extern s32 (* OSIsAddressValid)(const void *ptr); extern s32 (* MCP_Open)(void); extern s32 (* MCP_Close)(s32 handle); extern s32 (* MCP_GetOwnTitleInfo)(s32 handle, void * data); +extern void* (* MCP_GetDeviceId)(s32 handle, u32 * id); //!---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- //! LOADER functions