mirror of
https://github.com/Maschell/controller_patcher.git
synced 2024-11-22 03:59:16 +01:00
Fixed setup
This commit is contained in:
parent
a26a2c9c4e
commit
dae6de9f9c
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user