mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 08:25:38 +00:00
Write binary of world too.
This commit is contained in:
parent
f5b465c0e1
commit
637d50a9de
@ -156,10 +156,9 @@ int main(int argc,char **argv)
|
|||||||
fprintf(stderr,"FATAL: serialization test failed!"ZT_EOL_S);
|
fprintf(stderr,"FATAL: serialization test failed!"ZT_EOL_S);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
//fwrite(outtmp.data(),outtmp.size(),1,stdout);
|
|
||||||
//fflush(stdout);
|
|
||||||
|
|
||||||
//fprintf(stderr,"INFO: wrote %u bytes to stdout"ZT_EOL_S,outtmp.size());
|
OSUtils::writeFile("world.bin",std::string((const char *)outtmp.data(),outtmp.size()));
|
||||||
|
fprintf(stderr,"INFO: world.bin written with %u bytes of binary world data."ZT_EOL_S,outtmp.size());
|
||||||
|
|
||||||
fprintf(stdout,ZT_EOL_S);
|
fprintf(stdout,ZT_EOL_S);
|
||||||
fprintf(stdout,"#define ZT_DEFAULT_WORLD_LENGTH %u"ZT_EOL_S,outtmp.size());
|
fprintf(stdout,"#define ZT_DEFAULT_WORLD_LENGTH %u"ZT_EOL_S,outtmp.size());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user