From 166df0731e6b16afe13dbd20298439ebe948edcc Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 3 Sep 2022 16:37:52 +0200 Subject: [PATCH] Rename ContentRedirection_Init to ContentRedirection_InitLibrary --- include/content_redirection/redirection.h | 2 +- source/utils.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/content_redirection/redirection.h b/include/content_redirection/redirection.h index fae0450..6175250 100644 --- a/include/content_redirection/redirection.h +++ b/include/content_redirection/redirection.h @@ -70,7 +70,7 @@ typedef enum ContentRedirectionApiErrorType { * CONTENT_REDIRECTION_RESULT_MODULE_MISSING_EXPORT: The module is missing an expected export. * CONTENT_REDIRECTION_RESULT_UNSUPPORTED_VERSION: The version of the loaded module is not compatible with this version of the lib. */ -ContentRedirectionStatus ContentRedirection_Init(); +ContentRedirectionStatus ContentRedirection_InitLibrary(); /** * Returns the API Version of the Content Redirection Module. diff --git a/source/utils.cpp b/source/utils.cpp index c9934c6..3e7d62d 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -12,7 +12,7 @@ static ContentRedirectionVersion (*sCRGetVersion)() static ContentRedirectionStatus (*sCRAddDevice)(const devoptab_t *, int *) = nullptr; static ContentRedirectionStatus (*sCRRemoveDevice)(const char *) = nullptr; -ContentRedirectionStatus ContentRedirection_Init() { +ContentRedirectionStatus ContentRedirection_InitLibrary() { if (OSDynLoad_Acquire("homebrew_content_redirection", &sModuleHandle) != OS_DYNLOAD_OK) { OSReport("ContentRedirection_Init: OSDynLoad_Acquire failed.\n"); return CONTENT_REDIRECTION_RESULT_MODULE_NOT_FOUND;