public static WorldFile OpenOrCreate(string path) { #if DISABLE return(null); #else var wf = new WorldFile(); wf.LoadIndexFile(path); if (wf._chunkFiles.Count > 0) { wf.OpenChunkFile(path); } else { wf.NewChunkFile(path); } return(wf); #endif }