Changed function signature and name to match other functions.

This commit is contained in:
Daniel K. O. (dkosmari) 2024-08-27 12:23:27 -03:00
parent 90848971ad
commit 4ac6296526

View File

@ -311,12 +311,16 @@ namespace WUPSConfigAPIBackend {
return WUPSCONFIG_API_RESULT_SUCCESS; return WUPSCONFIG_API_RESULT_SUCCESS;
} }
BOOL WUPSConfigAPI_IsMenuOpen(void) { WUPSConfigAPIStatus WUPSConfigAPI_GetMenuOpen(BOOL *out) {
return gConfigMenuOpened; if (out == nullptr) {
return WUPSCONFIG_API_RESULT_INVALID_ARGUMENT;
}
*out = gConfigMenuOpened;
return WUPSCONFIG_API_RESULT_SUCCESS;
} }
WUMS_EXPORT_FUNCTION(WUPSConfigAPI_GetVersion); WUMS_EXPORT_FUNCTION(WUPSConfigAPI_GetVersion);
WUMS_EXPORT_FUNCTION(WUPSConfigAPI_IsMenuOpen); WUMS_EXPORT_FUNCTION(WUPSConfigAPI_GetMenuOpen);
WUMS_EXPORT_FUNCTION_EX(WUPSConfigAPIBackend::InitEx, WUPSConfigAPI_InitEx); WUMS_EXPORT_FUNCTION_EX(WUPSConfigAPIBackend::InitEx, WUPSConfigAPI_InitEx);
WUMS_EXPORT_FUNCTION_EX(WUPSConfigAPIBackend::Category::Create, WUPSConfigAPI_Category_CreateEx); WUMS_EXPORT_FUNCTION_EX(WUPSConfigAPIBackend::Category::Create, WUPSConfigAPI_Category_CreateEx);