From 531dfaee7fd5e4037cf683bbf0de53d4354affcc Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 30 Jun 2018 21:13:16 +0200 Subject: [PATCH] Add OSDynLoad_GetModuleName --- include/coreinit/dynload.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/coreinit/dynload.h b/include/coreinit/dynload.h index 9f8e8d06..03d58df4 100644 --- a/include/coreinit/dynload.h +++ b/include/coreinit/dynload.h @@ -103,6 +103,16 @@ OSDynLoad_Error OSDynLoad_GetTLSAllocator(OSDynLoadAllocFn *outAllocFn, OSDynLoadFreeFn *outFreeFn); + +/** +* Gets the name for a given module handle. +* Using the value "-1" as module handle gets the name of the running main rpl +**/ +OSDynLoad_Error +OSDynLoad_GetModuleName(OSDynLoad_Module module, + char * nameBuf, + int32_t * nameBufSize); + /** * The prototype for an RPL entry point. *