Gui mode for seed

This commit is contained in:
jl777
2019-02-02 05:39:05 -11:00
parent faf6323ad4
commit 405e1e0c17
2 changed files with 4 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ int rogue(int argc, char **argv, char **envp);
int main(int argc, char **argv, char **envp)
{
uint64_t seed; FILE *fp = 0;
if ( argc > 1 && (fp=fopen(argv[1],"rb")) == 0 )
if ( argc == 2 && (fp=fopen(argv[1],"rb")) == 0 )
{
seed = atol(argv[1]);
fprintf(stderr,"replay %llu\n",(long long)seed);