STANDALONE
This commit is contained in:
@@ -190,7 +190,11 @@ int32_t safecopy(char *dest,char *src,long len)
|
|||||||
|
|
||||||
#define true 1
|
#define true 1
|
||||||
#define false 0
|
#define false 0
|
||||||
|
#ifdef STANDALONE
|
||||||
|
#include "../komodo/src/komodo_cJSON.c"
|
||||||
|
#else
|
||||||
#include "../../komodo_cJSON.c"
|
#include "../../komodo_cJSON.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
int32_t rogue_replay(uint64_t seed,int32_t sleeptime);
|
int32_t rogue_replay(uint64_t seed,int32_t sleeptime);
|
||||||
int rogue(int argc, char **argv, char **envp);
|
int rogue(int argc, char **argv, char **envp);
|
||||||
|
|||||||
@@ -15,7 +15,11 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include "rogue.h"
|
#include "rogue.h"
|
||||||
|
#ifdef STANDALONE
|
||||||
|
#include "../komodo/src/komodo_cJSON.h"
|
||||||
|
#else
|
||||||
#include "../../komodo_cJSON.h"
|
#include "../../komodo_cJSON.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* main:
|
* main:
|
||||||
@@ -175,7 +179,7 @@ int32_t rogue_setplayerdata(struct rogue_state *rs,char *gametxidstr)
|
|||||||
if ( (pname= jstr(item,"pname")) != 0 && strlen(pname) < MAXSTR-1 )
|
if ( (pname= jstr(item,"pname")) != 0 && strlen(pname) < MAXSTR-1 )
|
||||||
strcpy(whoami,pname);
|
strcpy(whoami,pname);
|
||||||
decode_hex((uint8_t *)&rs->P,(int32_t)strlen(datastr)/2,datastr);
|
decode_hex((uint8_t *)&rs->P,(int32_t)strlen(datastr)/2,datastr);
|
||||||
//fprintf(stderr,"set datastr[%d]\n",(int32_t)strlen(datastr));
|
fprintf(stderr,"set pname[%s] %s\n",pname==0?"":pname,jprint(item,0));
|
||||||
rs->restoring = 1;
|
rs->restoring = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user