From: alexis-puska Date: Sat, 2 Jul 2016 14:39:51 +0000 (+0200) Subject: fix compilation error X-Git-Tag: r24l~847^2~3 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1fa817721fc53af709d68258bcbc976559fa17f;p=pcsx_rearmed.git fix compilation error --- diff --git a/include/psemu_plugin_defs.h b/include/psemu_plugin_defs.h index 5c2fefe1..fafd8c43 100644 --- a/include/psemu_plugin_defs.h +++ b/include/psemu_plugin_defs.h @@ -215,7 +215,7 @@ typedef struct unsigned char VibF[2]; //configuration mode Request 0x43 - boolean configMode; + int configMode; unsigned char reserved[87]; } PadDataS; diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c index 74b19250..6f5852b0 100644 --- a/libpcsxcore/plugins.c +++ b/libpcsxcore/plugins.c @@ -505,7 +505,7 @@ void initBufForRequest(int padIndex, char value){ //case CMD_READ_DATA_AND_VIBRATE : // break; case CMD_CONFIG_MODE : - if(pad[padIndex].configMode == TRUE){ + if(pad[padIndex].configMode == 1){ buf[0] = 0xF3; buf[1] = 0x53; } @@ -558,9 +558,9 @@ void reqIndex2Treatment(int padIndex, char value){ case CMD_CONFIG_MODE : //0x43 if(value == 0){ - pad[padIndex].configMode = FALSE; + pad[padIndex].configMode = 0; }else{ - pad->configMode = TRUE; + pad->configMode = 1; } break; case CMD_SET_MODE_AND_LOCK :