const fs = require("fs"); const http = require("http"); const https = require("https"); const { validateLibraryRules } = require("./core/Utils"); const { Instance, ServersDat, ServersDatServer } = require("./core/LauncherCore"); const { LauncherApp } = require("./src/LauncherApp"); (async () => { const core = new Instance(); await core.loadVersionManifest(); //console.log(await core.getLatestRelease()); //await core.startVersion("1.20.1"); //await core.startLatestRelease(); /*const sd = await (new ServersDat(`${__dirname}/minecraft/servers.dat`)).load(); sd.updateOrAddToTop(new ServersDatServer("Chronika Elosztó", "chronika.hu")); await sd.save();*/ core.serverListUrl = "https://files.chronika.hu/serverlist.json"; core.generateOfflineUUID(); core.setWorkDirAtDefaultLocation(".chronika-plasma"); //await core.startVersion("1.20.1"); })/*()*/; new LauncherApp();