fix compilation error
authoralexis-puska <a.puska@ile-noire.com>
Sat, 2 Jul 2016 14:39:51 +0000 (16:39 +0200)
committeralexis-puska <a.puska@ile-noire.com>
Sat, 2 Jul 2016 14:39:51 +0000 (16:39 +0200)
include/psemu_plugin_defs.h
libpcsxcore/plugins.c

index 5c2fefe..fafd8c4 100644 (file)
@@ -215,7 +215,7 @@ typedef struct
        unsigned char VibF[2];
        
        //configuration mode Request 0x43
-       boolean configMode;
+       int configMode;
        unsigned char reserved[87];
 
 } PadDataS;
index 74b1925..6f5852b 100644 (file)
@@ -505,7 +505,7 @@ void initBufForRequest(int padIndex, char value){
                //case CMD_READ_DATA_AND_VIBRATE :\r
                //      break;\r
                case CMD_CONFIG_MODE :\r
-                       if(pad[padIndex].configMode == TRUE){\r
+                       if(pad[padIndex].configMode == 1){\r
                                buf[0] = 0xF3;
                                buf[1] = 0x53;\r
                        }\r
@@ -558,9 +558,9 @@ void reqIndex2Treatment(int padIndex, char value){
                case CMD_CONFIG_MODE :\r
                        //0x43\r
                        if(value == 0){\r
-                               pad[padIndex].configMode = FALSE;\r
+                               pad[padIndex].configMode = 0;\r
                        }else{\r
-                               pad->configMode = TRUE;\r
+                               pad->configMode = 1;\r
                        }\r
                        break;\r
                case CMD_SET_MODE_AND_LOCK :\r