mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +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, // Магия вне хогвартса
|
||||
};
|
||||
|
||||
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) {
|
||||
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
|
||||
public void preLoad() throws IOException, ScriptException {
|
||||
if (!isPreLoaded) {
|
||||
loadScript(Launcher.API_SCRIPT_FILE);
|
||||
loadScript(Launcher.CONFIG_SCRIPT_FILE);
|
||||
loadScript(Launcher.API_SCRIPT_FILE);
|
||||
isPreLoaded = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue