Test
This commit is contained in:
@@ -450,7 +450,7 @@ try_again:
|
|||||||
|
|
||||||
databuf = (char *)malloc(256 + strlen(command) + strlen(params));
|
databuf = (char *)malloc(256 + strlen(command) + strlen(params));
|
||||||
sprintf(databuf,"{\"id\":\"jl777\",\"method\":\"%s\",\"params\":%s%s%s}",command,bracket0,params,bracket1);
|
sprintf(databuf,"{\"id\":\"jl777\",\"method\":\"%s\",\"params\":%s%s%s}",command,bracket0,params,bracket1);
|
||||||
printf("url.(%s) userpass.(%s) databuf.(%s)\n",url,userpass,databuf);
|
//printf("url.(%s) userpass.(%s) databuf.(%s)\n",url,userpass,databuf);
|
||||||
//
|
//
|
||||||
} //else if ( specialcase != 0 ) fprintf(stderr,"databuf.(%s)\n",params);
|
} //else if ( specialcase != 0 ) fprintf(stderr,"databuf.(%s)\n",params);
|
||||||
curl_easy_setopt(curl_handle,CURLOPT_POST,1L);
|
curl_easy_setopt(curl_handle,CURLOPT_POST,1L);
|
||||||
@@ -715,7 +715,7 @@ void rogue_progress(struct rogue_state *rs,uint64_t seed,char *keystrokes,int32_
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf(params,"[\"keystrokes\",\"17\",\"[%%22%s%%22,%%22%s%%22]\"]",Gametxidstr,hexstr);
|
sprintf(params,"[\"keystrokes\",\"17\",\\\"[%%22%s%%22,%%22%s%%22]\\\"]",Gametxidstr,hexstr);
|
||||||
if ( (retstr= komodo_issuemethod(USERPASS,"cclib",params,ROGUE_PORT)) != 0 )
|
if ( (retstr= komodo_issuemethod(USERPASS,"cclib",params,ROGUE_PORT)) != 0 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"KEYSTROKES.(%s)\n",retstr);
|
fprintf(stderr,"KEYSTROKES.(%s)\n",retstr);
|
||||||
@@ -742,7 +742,7 @@ int32_t rogue_setplayerdata(struct rogue_state *rs,char *gametxidstr)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
sprintf(params,"[\"gameinfo\",\"17\",\"[%%22%s%%22]\"]",gametxidstr);
|
sprintf(params,"[\"gameinfo\",\"17\",\\\"[%%22%s%%22]\\\"]",gametxidstr);
|
||||||
filestr = komodo_issuemethod(USERPASS,"cclib",params,ROGUE_PORT);
|
filestr = komodo_issuemethod(USERPASS,"cclib",params,ROGUE_PORT);
|
||||||
}
|
}
|
||||||
if ( filestr != 0 )
|
if ( filestr != 0 )
|
||||||
|
|||||||
@@ -5416,7 +5416,7 @@ UniValue cclib(const UniValue& params, bool fHelp)
|
|||||||
}
|
}
|
||||||
if ( params.size() == 3 )
|
if ( params.size() == 3 )
|
||||||
{
|
{
|
||||||
fprintf(stderr,"params.(%s %s %s)\n",params[0].get_str().c_str(),params[1].get_str().c_str(),params[2].get_str().c_str());
|
//fprintf(stderr,"params.(%s %s %s)\n",params[0].get_str().c_str(),params[1].get_str().c_str(),params[2].get_str().c_str());
|
||||||
jsonparams = cJSON_Parse(params[2].get_str().c_str());
|
jsonparams = cJSON_Parse(params[2].get_str().c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user