mirror of
https://github.com/wiiu-env/ContentRedirectionModule.git
synced 2024-11-10 13:45:16 +01:00
Update CRGetVersion
This commit is contained in:
parent
cf51d1f724
commit
1df67e1712
@ -5,7 +5,6 @@
|
|||||||
#include "utils/logger.h"
|
#include "utils/logger.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
#include <content_redirection/redirection.h>
|
#include <content_redirection/redirection.h>
|
||||||
#include <coreinit/debug.h>
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <wums/exports.h>
|
#include <wums/exports.h>
|
||||||
|
|
||||||
@ -57,8 +56,13 @@ ContentRedirectionApiErrorType CRSetActive(CRLayerHandle handle, bool active) {
|
|||||||
return CONTENT_REDIRECTION_API_ERROR_LAYER_NOT_FOUND;
|
return CONTENT_REDIRECTION_API_ERROR_LAYER_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t CRGetVersion() {
|
ContentRedirectionApiErrorType CRGetVersion(ContentRedirectionVersion *outVersion) {
|
||||||
return CONTENT_REDIRECT_MODULE_VERSION;
|
if (outVersion == nullptr) {
|
||||||
|
DEBUG_FUNCTION_LINE_ERR("CONTENT_REDIRECTION_API_ERROR_INVALID_ARG");
|
||||||
|
return CONTENT_REDIRECTION_API_ERROR_INVALID_ARG;
|
||||||
|
}
|
||||||
|
*outVersion = 1;
|
||||||
|
return CONTENT_REDIRECTION_API_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
int CRAddDevice(const devoptab_t *device) {
|
int CRAddDevice(const devoptab_t *device) {
|
||||||
|
Loading…
Reference in New Issue
Block a user