From 6788165332acf4abd895d287b6cedaf0536f2df5 Mon Sep 17 00:00:00 2001 From: Zaxar163 Date: Mon, 19 Aug 2019 12:26:58 +0300 Subject: [PATCH] =?UTF-8?q?Revert=20"[ANY]=20=D0=9E=D0=B1=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D1=8B=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB?= =?UTF-8?q?=D0=B8."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 4edb793f81a452b32a2ac40d1b6182fd11d8166f. --- .../java/pro/gravit/launcher/gui/JSRuntimeProvider.java | 8 +++++++- modules | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java b/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java index ba45d238..17738305 100644 --- a/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java +++ b/Launcher/src/main/java/pro/gravit/launcher/gui/JSRuntimeProvider.java @@ -62,7 +62,7 @@ public class JSRuntimeProvider implements RuntimeProvider { - public final ScriptEngine engine = CommonHelper.newScriptEngine(); + private final ScriptEngine engine = CommonHelper.newScriptEngine(); private boolean isPreLoaded = false; @LauncherAPI @@ -99,6 +99,12 @@ public static void addLauncherClassBindings(Map bindings) { bindings.put("BatchProfileByUsernameRequestClass", BatchProfileByUsernameRequest.class); bindings.put("GetAvailabilityAuthRequestClass", GetAvailabilityAuthRequest.class); + // Set hasher class bindings + bindings.put("FileNameMatcherClass", FileNameMatcher.class); + bindings.put("HashedDirClass", HashedDir.class); + bindings.put("HashedFileClass", HashedFile.class); + bindings.put("HashedEntryTypeClass", HashedEntry.Type.class); + // Set serialization class bindings bindings.put("HInputClass", HInput.class); bindings.put("HOutputClass", HOutput.class); diff --git a/modules b/modules index c5986c83..87fe3184 160000 --- a/modules +++ b/modules @@ -1 +1 @@ -Subproject commit c5986c83c7d9a2c988a4846efc0ec99c4b8d0934 +Subproject commit 87fe3184197497065962f3013b1c0f4d1fe0b5e3