QTfrontend/xfire.cpp
changeset 6573 632fa142c2cf
parent 4976 088d40d8aba2
child 6700 e04da46ee43c
equal deleted inserted replaced
6572:0d0af531c1c7 6573:632fa142c2cf
    21 #include <stdio.h>
    21 #include <stdio.h>
    22 
    22 
    23 #include "xfire.h"
    23 #include "xfire.h"
    24 #include "../misc/xfire/xfiregameclient.h"
    24 #include "../misc/xfire/xfiregameclient.h"
    25 
    25 
       
    26 #ifdef USE_XFIRE
    26 // use_xfire: stores if xfire is loaded and functions should do something at all
    27 // use_xfire: stores if xfire is loaded and functions should do something at all
    27 bool use_xfire = false;
    28 bool use_xfire = false;
    28 char *keys[XFIRE_KEY_COUNT];
    29 char *keys[XFIRE_KEY_COUNT];
    29 char *values[XFIRE_KEY_COUNT];
    30 char *values[XFIRE_KEY_COUNT];
    30 
    31 
    79 {
    80 {
    80     if(!use_xfire)
    81     if(!use_xfire)
    81         return;
    82         return;
    82     XfireSetCustomGameDataA(XFIRE_KEY_COUNT, (const char**)keys, (const char**)values);
    83     XfireSetCustomGameDataA(XFIRE_KEY_COUNT, (const char**)keys, (const char**)values);
    83 }
    84 }
       
    85 #endif // USE_XFIRE