#include "rogue/cursesd.c"
This commit is contained in:
@@ -691,8 +691,8 @@ int32_t cclib_parsehash(uint8_t *hash32,cJSON *item,int32_t len)
|
|||||||
#include "customcc.cpp"
|
#include "customcc.cpp"
|
||||||
|
|
||||||
#elif BUILD_GAMESCC
|
#elif BUILD_GAMESCC
|
||||||
#include "gamescc.cpp"
|
|
||||||
#include "rogue/cursesd.c"
|
#include "rogue/cursesd.c"
|
||||||
|
#include "gamescc.cpp"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include "sudoku.cpp"
|
#include "sudoku.cpp"
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ void *gamesiterate(struct games_state *rs)
|
|||||||
#ifdef STANDALONE
|
#ifdef STANDALONE
|
||||||
sleep_milli(10000);
|
sleep_milli(10000);
|
||||||
price = get_btcusd();
|
price = get_btcusd();
|
||||||
fprintf(stderr,"price %llu %.8f\n",(long long)price,(double)price/COIN);
|
fprintf(stderr,"price %llu %.8f\n",(long long)price,(double)price/SATOSHIDEN);
|
||||||
/*if ( (counter++ % 10) == 0 )
|
/*if ( (counter++ % 10) == 0 )
|
||||||
doupdate();
|
doupdate();
|
||||||
c = games_readevent(rs);
|
c = games_readevent(rs);
|
||||||
@@ -184,9 +184,12 @@ void *filestr(long *allocsizep,char *_fname)
|
|||||||
|
|
||||||
char *send_curl(char *url,char *fname)
|
char *send_curl(char *url,char *fname)
|
||||||
{
|
{
|
||||||
long fsize; char curlstr[1024];
|
long fsize; char curlstr[1024],*retstr,*retstr2;
|
||||||
sprintf(curlstr,"curl --url \"%s\" > %s",url,fname);
|
sprintf(curlstr,"curl --url \"%s\" > %s",url,fname);
|
||||||
system(curlstr);
|
//retstr2 = bitcoind_RPC(&retstr,(char *)"prices",url,"","","");
|
||||||
|
|
||||||
|
if ( system(curlstr) != 0 )
|
||||||
|
fprintf(stderr,"error doing system(%s)\n",curlstr);
|
||||||
return((char *)filestr(&fsize,fname));
|
return((char *)filestr(&fsize,fname));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user