mirror of
https://github.com/Cubitect/cubiomes.git
synced 2025-01-08 11:37:32 +08:00
Fixed directory status check for windows.
This commit is contained in:
parent
fc5a42180c
commit
94ffb83018
@ -156,6 +156,7 @@ int main()
|
||||
int entry = L_VORONOI_ZOOM_1;
|
||||
int *area = allocCache(&g.layers[entry], w, h);
|
||||
|
||||
printf("Searching...\n");
|
||||
int64_t seed;
|
||||
for (seed = 0; ; seed++)
|
||||
if (checkForBiomes(&g, entry, area, seed, x, z, w, h, filter, 1) > 0)
|
||||
@ -248,6 +249,7 @@ int main()
|
||||
int threads = 8;
|
||||
LayerStack g;
|
||||
|
||||
printf("Preparing seed bases...\n");
|
||||
// Get all 48-bit quad-witch-hut bases, but consider only the best 20-bit
|
||||
// constellations where the structures are the closest together.
|
||||
int err = searchAll48(
|
||||
|
@ -5,15 +5,16 @@
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <direct.h>
|
||||
#define IS_DIR_SEP ((C) == '/' || (C) == '\\')
|
||||
#define IS_DIR_SEP(C) ((C) == '/' || (C) == '\\')
|
||||
#define stat _stat
|
||||
#define mkdir(P,X) _mkdir(P)
|
||||
#define S_IFDIR _S_IFDIR
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#define IS_DIR_SEP(C) ((C) == '/')
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user