mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
[ANY] Angelok support
This commit is contained in:
parent
0b682171a2
commit
95bc0ef53d
3 changed files with 13 additions and 13 deletions
|
@ -25,15 +25,4 @@ var config = {
|
||||||
},
|
},
|
||||||
|
|
||||||
settingsMagic: 0xC0DE5, // Магия вне хогвартса
|
settingsMagic: 0xC0DE5, // Магия вне хогвартса
|
||||||
};
|
};
|
||||||
|
|
||||||
DirBridge.dir = DirBridge.getLauncherDir(config.dir);
|
|
||||||
DirBridge.dirStore = DirBridge.getStoreDir(config.dir);
|
|
||||||
DirBridge.dirProjectStore = DirBridge.getProjectStoreDir(config.dir);
|
|
||||||
if (!IOHelper.isDir(DirBridge.dir)) {
|
|
||||||
java.nio.file.Files.createDirectory(DirBridge.dir);
|
|
||||||
}
|
|
||||||
DirBridge.defaultUpdatesDir = DirBridge.dir.resolve("updates");
|
|
||||||
if (!IOHelper.isDir(DirBridge.defaultUpdatesDir)) {
|
|
||||||
java.nio.file.Files.createDirectory(DirBridge.defaultUpdatesDir);
|
|
||||||
}
|
|
|
@ -89,4 +89,15 @@ function startTask(task) {
|
||||||
|
|
||||||
function openURL(url) {
|
function openURL(url) {
|
||||||
app.getHostServices().showDocument(url.toURI());
|
app.getHostServices().showDocument(url.toURI());
|
||||||
|
}
|
||||||
|
|
||||||
|
DirBridge.dir = DirBridge.getLauncherDir(config.dir);
|
||||||
|
DirBridge.dirStore = DirBridge.getStoreDir(config.dir);
|
||||||
|
DirBridge.dirProjectStore = DirBridge.getProjectStoreDir(config.dir);
|
||||||
|
if (!IOHelper.isDir(DirBridge.dir)) {
|
||||||
|
java.nio.file.Files.createDirectory(DirBridge.dir);
|
||||||
|
}
|
||||||
|
DirBridge.defaultUpdatesDir = DirBridge.dir.resolve("updates");
|
||||||
|
if (!IOHelper.isDir(DirBridge.defaultUpdatesDir)) {
|
||||||
|
java.nio.file.Files.createDirectory(DirBridge.defaultUpdatesDir);
|
||||||
}
|
}
|
|
@ -171,8 +171,8 @@ public void run(String[] args) throws ScriptException, NoSuchMethodException, IO
|
||||||
@Override
|
@Override
|
||||||
public void preLoad() throws IOException, ScriptException {
|
public void preLoad() throws IOException, ScriptException {
|
||||||
if (!isPreLoaded) {
|
if (!isPreLoaded) {
|
||||||
loadScript(Launcher.API_SCRIPT_FILE);
|
|
||||||
loadScript(Launcher.CONFIG_SCRIPT_FILE);
|
loadScript(Launcher.CONFIG_SCRIPT_FILE);
|
||||||
|
loadScript(Launcher.API_SCRIPT_FILE);
|
||||||
isPreLoaded = true;
|
isPreLoaded = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue