This commit is contained in:
jl777
2019-02-20 22:28:44 -11:00
parent 513a9cc3fc
commit b60b2118c5
3 changed files with 14 additions and 2 deletions

View File

@@ -24,7 +24,7 @@
#include <curl/easy.h>
char USERPASS[8192]; uint16_t ROGUE_PORT;
char Gametxidstr[67];
extern char Gametxidstr[67];
#define SMALLVAL 0.000000000000001
#define SATOSHIDEN ((uint64_t)100000000L)

View File

@@ -25,6 +25,7 @@
* The main program, of course
*/
struct rogue_state globalR;
char Gametxidstr[67];
void garbage_collect();
void purge_obj_guess(struct obj_info *array,int32_t n)
@@ -151,6 +152,18 @@ int32_t flushkeystrokes(struct rogue_state *rs)
}
#else
#ifdef BUILD_ROGUE
// stubs for inside daemon
void rogue_progress(struct rogue_state *rs,uint64_t seed,char *keystrokes,int32_t num)
{
}
int32_t rogue_setplayerdata(struct rogue_state *rs,char *gametxidstr)
{
return(-1);
}
#endif
int32_t flushkeystrokes(struct rogue_state *rs)
{
if ( rs->num > 0 )

View File

@@ -370,7 +370,6 @@ struct rogue_state
uint8_t playerdata[10000];
};
extern struct rogue_state globalR;
extern char Gametxidstr[67];
int rogue(int argc, char **argv, char **envp);
void rogueiterate(struct rogue_state *rs);