From 7a2fd2d6246338d9b688d75a607ba5c4b2c22214 Mon Sep 17 00:00:00 2001 From: Maschell Date: Sat, 3 Sep 2022 16:49:26 +0200 Subject: [PATCH] Fix types of function pointer --- source/utils.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/utils.cpp b/source/utils.cpp index ac04489..a59b9b7 100644 --- a/source/utils.cpp +++ b/source/utils.cpp @@ -5,12 +5,12 @@ static OSDynLoad_Module sModuleHandle = nullptr; -static ContentRedirectionStatus (*sCRAddFSLayer)(CRLayerHandle *, const char *, const char *, FSLayerType) = nullptr; -static ContentRedirectionStatus (*sCRRemoveFSLayer)(CRLayerHandle) = nullptr; -static ContentRedirectionStatus (*sCRSetActive)(CRLayerHandle) = nullptr; -static ContentRedirectionVersion (*sCRGetVersion)() = nullptr; -static ContentRedirectionStatus (*sCRAddDevice)(const devoptab_t *, int *) = nullptr; -static ContentRedirectionStatus (*sCRRemoveDevice)(const char *) = nullptr; +static ContentRedirectionApiErrorType (*sCRAddFSLayer)(CRLayerHandle *, const char *, const char *, FSLayerType) = nullptr; +static ContentRedirectionApiErrorType (*sCRRemoveFSLayer)(CRLayerHandle) = nullptr; +static ContentRedirectionApiErrorType (*sCRSetActive)(CRLayerHandle) = nullptr; +static ContentRedirectionVersion (*sCRGetVersion)() = nullptr; +static ContentRedirectionApiErrorType (*sCRAddDevice)(const devoptab_t *, int *) = nullptr; +static ContentRedirectionApiErrorType (*sCRRemoveDevice)(const char *) = nullptr; ContentRedirectionStatus ContentRedirection_InitLibrary() { if (OSDynLoad_Acquire("homebrew_content_redirection", &sModuleHandle) != OS_DYNLOAD_OK) {