mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-22 05:30:05 +00:00
Add functionality to restore default servers
This commit is contained in:
parent
0cdf3df4d4
commit
c2cd2d5cd6
@ -65,6 +65,11 @@ function deleteServer() {
|
|||||||
loadServerList();
|
loadServerList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function restoreDefaultServers() {
|
||||||
|
remotefs.copySync(__dirname+"\\defaults\\servers.json", userdir+"\\servers.json");
|
||||||
|
loadServerList();
|
||||||
|
}
|
||||||
|
|
||||||
function loadGameVersions() {
|
function loadGameVersions() {
|
||||||
var versionjson = JSON.parse(remotefs.readFileSync(userdir+"\\versions.json"));
|
var versionjson = JSON.parse(remotefs.readFileSync(userdir+"\\versions.json"));
|
||||||
versionarray = versionjson['versions'];
|
versionarray = versionjson['versions'];
|
||||||
|
Loading…
Reference in New Issue
Block a user