From de3c7ad6832b797c48e7101faf011083506b2ed4 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 26 Dec 2020 12:56:13 +0100 Subject: [PATCH] coreinit: add OSDynLoad_IsModuleLoaded --- include/coreinit/dynload.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/coreinit/dynload.h b/include/coreinit/dynload.h index da898143..3653a6e1 100644 --- a/include/coreinit/dynload.h +++ b/include/coreinit/dynload.h @@ -173,6 +173,14 @@ OSDynLoad_GetRPLInfo(uint32_t first, uint32_t count, OSDynLoad_NotifyData *outInfos); +/** +* Checks if a module is already loaded. Does not load any modules. +* +* Returns OS_DYNLOAD_OK on success. +**/ +OSDynLoad_Error +OSDynLoad_IsModuleLoaded(char const *name, + OSDynLoad_Module *outModule); /** * Registers a callback that's called whenever a new .rpl is loaded