From dae6de9f9caaff8c39a196b54479b2035a60f444 Mon Sep 17 00:00:00 2001 From: Maschell Date: Mon, 25 Apr 2016 21:08:00 +0200 Subject: [PATCH] Fixed setup --- controller_patcher.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/controller_patcher.c b/controller_patcher.c index 3c89119..8f18e48 100644 --- a/controller_patcher.c +++ b/controller_patcher.c @@ -14,6 +14,12 @@ void setConfigValue(u8 * dest, u8 first, u8 second){ } void init_config_controller(){ + InitOSFunctionPointers(); + InitSocketFunctionPointers(); + InitSysHIDFunctionPointers(); + InitSysFunctionPointers(); + InitVPadFunctionPointers(); + InitGX2FunctionPointers(); if(!config_done){ config_done = 1; memset(config_controller,CONTROLLER_PATCHER_INVALIDVALUE,sizeof(config_controller)); // Init / Invalid everything @@ -257,6 +263,15 @@ void init_config_controller(){ }else{ log_print("Config already done!\n"); } + + if(!gHIDSetupDone){ + HIDSetup(); + gHIDSetupDone = 1; + } + + if(!gHIDAttached){ + HIDAddClient(&gHIDClient, my_attach_cb); + } } void deinit_config_controller(){