Example #1
0
        public Minecraft CreateMinecraft()
        {
            if (GameObject != null)
                return GameObject;

            var mc = new Minecraft(GameFolder, AssetsFolder, LibraryFolder, VersionsFolder);
            mc.SelectedVersion = MinecraftVersion;
            mc.UnofficialVersionsUrl = string.Format("{0}/versions", this.Description.SyncUrl);
            if (Description.StartRam != null)
                mc.StartRam = this.Description.StartRam;
            if (Description.MaxRam != null)
                mc.MaxRam = this.Description.MaxRam;
            return GameObject = mc;
        }
 public string GetPath(Minecraft instance)
 {
     return Path.Combine (instance.LibraryLocation, StoreName);
 }