Spaces:
Build error
Build error
Upload folder using huggingface_hub
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +122 -35
- .gitignore +17 -0
- CompileEPK.bat +6 -0
- CompileEPK.sh +2 -0
- CompileJS.bat +4 -0
- CompileJS.sh +3 -0
- EAGLERCRAFTX_README.md +263 -0
- MakeOfflineDownload.bat +4 -0
- MakeOfflineDownload.sh +2 -0
- MakeSignedClient.bat +4 -0
- MakeSignedClient.sh +2 -0
- README.md +32 -10
- build.gradle +184 -0
- desktopRuntime/CompileEPK.jar +0 -0
- desktopRuntime/Java-WebSocket-1.5.1-with-dependencies.jar +3 -0
- desktopRuntime/LICENSE +29 -0
- desktopRuntime/MakeOfflineDownload.jar +0 -0
- desktopRuntime/OpenAL.dll +3 -0
- desktopRuntime/RTWebViewClient.html +514 -0
- desktopRuntime/UnsafeMemcpy.dll +3 -0
- desktopRuntime/UnsafeMemcpy.jar +0 -0
- desktopRuntime/angle_license.txt +32 -0
- desktopRuntime/codecjorbis-20101023.jar +3 -0
- desktopRuntime/codecwav-20101023.jar +0 -0
- desktopRuntime/d3dcompiler_47.dll +3 -0
- desktopRuntime/eclipseProject/deps_fix/Java-WebSocket-1.5.1-with-dependencies.jar +3 -0
- desktopRuntime/eclipseProject/deps_fix/UnsafeMemcpy.jar +0 -0
- desktopRuntime/eclipseProject/deps_fix/codecjorbis-20101023.jar +3 -0
- desktopRuntime/eclipseProject/deps_fix/codecwav-20101023.jar +0 -0
- desktopRuntime/eclipseProject/deps_fix/lwjgl-egl.jar +3 -0
- desktopRuntime/eclipseProject/deps_fix/lwjgl-glfw.jar +3 -0
- desktopRuntime/eclipseProject/deps_fix/lwjgl-jemalloc.jar +0 -0
- desktopRuntime/eclipseProject/deps_fix/lwjgl-openal.jar +3 -0
- desktopRuntime/eclipseProject/deps_fix/lwjgl-opengles.jar +3 -0
- desktopRuntime/eclipseProject/deps_fix/lwjgl.jar +3 -0
- desktopRuntime/eclipseProject/deps_fix/soundsystem-20120107.jar +0 -0
- desktopRuntime/eclipseProject/deps_fix/webrtc-java-0.8.0.jar +0 -0
- desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch +26 -0
- desktopRuntime/glfw.dll +3 -0
- desktopRuntime/glfw_license.txt +21 -0
- desktopRuntime/icon16.png +0 -0
- desktopRuntime/icon32.png +0 -0
- desktopRuntime/javadoc/lwjgl-egl-javadoc.jar +3 -0
- desktopRuntime/javadoc/lwjgl-glfw-javadoc.jar +3 -0
- desktopRuntime/javadoc/lwjgl-javadoc.jar +3 -0
- desktopRuntime/javadoc/lwjgl-jemalloc-javadoc.jar +3 -0
- desktopRuntime/javadoc/lwjgl-openal-javadoc.jar +3 -0
- desktopRuntime/javadoc/lwjgl-opengles-javadoc.jar +3 -0
- desktopRuntime/jemalloc.dll +3 -0
- desktopRuntime/jemalloc_license.txt +27 -0
.gitattributes
CHANGED
@@ -1,35 +1,122 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
*.
|
6 |
-
*.
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
# https://help.github.com/articles/dealing-with-line-endings/
|
3 |
+
#
|
4 |
+
|
5 |
+
*.bat text eol=crlf
|
6 |
+
*.sh text eol=lf
|
7 |
+
gradlew text eol=lf
|
8 |
+
desktopRuntime/Java-WebSocket-1.5.1-with-dependencies.jar filter=lfs diff=lfs merge=lfs -text
|
9 |
+
desktopRuntime/OpenAL.dll filter=lfs diff=lfs merge=lfs -text
|
10 |
+
desktopRuntime/UnsafeMemcpy.dll filter=lfs diff=lfs merge=lfs -text
|
11 |
+
desktopRuntime/codecjorbis-20101023.jar filter=lfs diff=lfs merge=lfs -text
|
12 |
+
desktopRuntime/d3dcompiler_47.dll filter=lfs diff=lfs merge=lfs -text
|
13 |
+
desktopRuntime/eclipseProject/deps_fix/Java-WebSocket-1.5.1-with-dependencies.jar filter=lfs diff=lfs merge=lfs -text
|
14 |
+
desktopRuntime/eclipseProject/deps_fix/codecjorbis-20101023.jar filter=lfs diff=lfs merge=lfs -text
|
15 |
+
desktopRuntime/eclipseProject/deps_fix/lwjgl-egl.jar filter=lfs diff=lfs merge=lfs -text
|
16 |
+
desktopRuntime/eclipseProject/deps_fix/lwjgl-glfw.jar filter=lfs diff=lfs merge=lfs -text
|
17 |
+
desktopRuntime/eclipseProject/deps_fix/lwjgl-openal.jar filter=lfs diff=lfs merge=lfs -text
|
18 |
+
desktopRuntime/eclipseProject/deps_fix/lwjgl-opengles.jar filter=lfs diff=lfs merge=lfs -text
|
19 |
+
desktopRuntime/eclipseProject/deps_fix/lwjgl.jar filter=lfs diff=lfs merge=lfs -text
|
20 |
+
desktopRuntime/glfw.dll filter=lfs diff=lfs merge=lfs -text
|
21 |
+
desktopRuntime/javadoc/lwjgl-egl-javadoc.jar filter=lfs diff=lfs merge=lfs -text
|
22 |
+
desktopRuntime/javadoc/lwjgl-glfw-javadoc.jar filter=lfs diff=lfs merge=lfs -text
|
23 |
+
desktopRuntime/javadoc/lwjgl-javadoc.jar filter=lfs diff=lfs merge=lfs -text
|
24 |
+
desktopRuntime/javadoc/lwjgl-jemalloc-javadoc.jar filter=lfs diff=lfs merge=lfs -text
|
25 |
+
desktopRuntime/javadoc/lwjgl-openal-javadoc.jar filter=lfs diff=lfs merge=lfs -text
|
26 |
+
desktopRuntime/javadoc/lwjgl-opengles-javadoc.jar filter=lfs diff=lfs merge=lfs -text
|
27 |
+
desktopRuntime/jemalloc.dll filter=lfs diff=lfs merge=lfs -text
|
28 |
+
desktopRuntime/libEGL.dll filter=lfs diff=lfs merge=lfs -text
|
29 |
+
desktopRuntime/libEGL.so.1 filter=lfs diff=lfs merge=lfs -text
|
30 |
+
desktopRuntime/libGLESv2.dll filter=lfs diff=lfs merge=lfs -text
|
31 |
+
desktopRuntime/libGLESv2.so filter=lfs diff=lfs merge=lfs -text
|
32 |
+
desktopRuntime/libUnsafeMemcpy.so filter=lfs diff=lfs merge=lfs -text
|
33 |
+
desktopRuntime/libglfw.so filter=lfs diff=lfs merge=lfs -text
|
34 |
+
desktopRuntime/libjemalloc.so filter=lfs diff=lfs merge=lfs -text
|
35 |
+
desktopRuntime/liblwjgl.so filter=lfs diff=lfs merge=lfs -text
|
36 |
+
desktopRuntime/liblwjgl_opengles.so filter=lfs diff=lfs merge=lfs -text
|
37 |
+
desktopRuntime/libopenal.so filter=lfs diff=lfs merge=lfs -text
|
38 |
+
desktopRuntime/libvulkan.so.1 filter=lfs diff=lfs merge=lfs -text
|
39 |
+
desktopRuntime/libwebrtc-java.so filter=lfs diff=lfs merge=lfs -text
|
40 |
+
desktopRuntime/lwjgl-egl.jar filter=lfs diff=lfs merge=lfs -text
|
41 |
+
desktopRuntime/lwjgl-glfw.jar filter=lfs diff=lfs merge=lfs -text
|
42 |
+
desktopRuntime/lwjgl-openal.jar filter=lfs diff=lfs merge=lfs -text
|
43 |
+
desktopRuntime/lwjgl-opengles.jar filter=lfs diff=lfs merge=lfs -text
|
44 |
+
desktopRuntime/lwjgl.dll filter=lfs diff=lfs merge=lfs -text
|
45 |
+
desktopRuntime/lwjgl.jar filter=lfs diff=lfs merge=lfs -text
|
46 |
+
desktopRuntime/lwjgl_opengles.dll filter=lfs diff=lfs merge=lfs -text
|
47 |
+
desktopRuntime/resources/assets/eagler/glsl/deferred/eagler_moon.bmp filter=lfs diff=lfs merge=lfs -text
|
48 |
+
desktopRuntime/resources/assets/eagler/icudt/uprops.icu filter=lfs diff=lfs merge=lfs -text
|
49 |
+
desktopRuntime/resources/assets/eagler/mesh/charles.png filter=lfs diff=lfs merge=lfs -text
|
50 |
+
desktopRuntime/resources/assets/minecraft/textures/gui/realms/adventure.png filter=lfs diff=lfs merge=lfs -text
|
51 |
+
desktopRuntime/resources/assets/minecraft/textures/gui/realms/experience.png filter=lfs diff=lfs merge=lfs -text
|
52 |
+
desktopRuntime/resources/assets/minecraft/textures/gui/realms/survival_spawn.png filter=lfs diff=lfs merge=lfs -text
|
53 |
+
desktopRuntime/resources/assets/minecraft/textures/gui/realms/upload.png filter=lfs diff=lfs merge=lfs -text
|
54 |
+
desktopRuntime/resources/plugin_download.zip filter=lfs diff=lfs merge=lfs -text
|
55 |
+
desktopRuntime/resources/relay_download.zip filter=lfs diff=lfs merge=lfs -text
|
56 |
+
desktopRuntime/vulkan-1.dll filter=lfs diff=lfs merge=lfs -text
|
57 |
+
desktopRuntime/webrtc-java.dll filter=lfs diff=lfs merge=lfs -text
|
58 |
+
javascript/assets.epk filter=lfs diff=lfs merge=lfs -text
|
59 |
+
src/jars/com/fasterxml/jackson/core/jackson-core/2.13.4/jackson-core-2.13.4.jar filter=lfs diff=lfs merge=lfs -text
|
60 |
+
src/jars/com/fasterxml/jackson/core/jackson-databind/2.13.4.2/jackson-databind-2.13.4.2.jar filter=lfs diff=lfs merge=lfs -text
|
61 |
+
src/jars/com/github/oshi/oshi-core/6.6.5/oshi-core-6.6.5.jar filter=lfs diff=lfs merge=lfs -text
|
62 |
+
src/jars/com/google/code/gson/gson/2.11.0/gson-2.11.0.jar filter=lfs diff=lfs merge=lfs -text
|
63 |
+
src/jars/com/google/guava/guava/33.3.1-jre/guava-33.3.1-jre.jar filter=lfs diff=lfs merge=lfs -text
|
64 |
+
src/jars/com/ibm/icu/icu4j/76.1/icu4j-76.1.jar filter=lfs diff=lfs merge=lfs -text
|
65 |
+
src/jars/com/microsoft/azure/msal4j/1.17.2/msal4j-1.17.2.jar filter=lfs diff=lfs merge=lfs -text
|
66 |
+
src/jars/com/mojang/authlib/6.0.58/authlib-6.0.58.jar filter=lfs diff=lfs merge=lfs -text
|
67 |
+
src/jars/com/mojang/datafixerupper/8.0.16/datafixerupper-8.0.16.jar filter=lfs diff=lfs merge=lfs -text
|
68 |
+
src/jars/com/nimbusds/nimbus-jose-jwt/9.40/nimbus-jose-jwt-9.40.jar filter=lfs diff=lfs merge=lfs -text
|
69 |
+
src/jars/com/nimbusds/oauth2-oidc-sdk/11.18/oauth2-oidc-sdk-11.18.jar filter=lfs diff=lfs merge=lfs -text
|
70 |
+
src/jars/commons-codec/commons-codec/1.17.1/commons-codec-1.17.1.jar filter=lfs diff=lfs merge=lfs -text
|
71 |
+
src/jars/commons-io/commons-io/2.17.0/commons-io-2.17.0.jar filter=lfs diff=lfs merge=lfs -text
|
72 |
+
src/jars/io/netty/netty-buffer/4.1.118.Final/netty-buffer-4.1.118.Final.jar filter=lfs diff=lfs merge=lfs -text
|
73 |
+
src/jars/io/netty/netty-codec/4.1.118.Final/netty-codec-4.1.118.Final.jar filter=lfs diff=lfs merge=lfs -text
|
74 |
+
src/jars/io/netty/netty-common/4.1.118.Final/netty-common-4.1.118.Final.jar filter=lfs diff=lfs merge=lfs -text
|
75 |
+
src/jars/io/netty/netty-handler/4.1.118.Final/netty-handler-4.1.118.Final.jar filter=lfs diff=lfs merge=lfs -text
|
76 |
+
src/jars/io/netty/netty-transport/4.1.118.Final/netty-transport-4.1.118.Final.jar filter=lfs diff=lfs merge=lfs -text
|
77 |
+
src/jars/io/netty/netty-transport-classes-epoll/4.1.118.Final/netty-transport-classes-epoll-4.1.118.Final.jar filter=lfs diff=lfs merge=lfs -text
|
78 |
+
src/jars/it/unimi/dsi/fastutil/8.5.15/fastutil-8.5.15.jar filter=lfs diff=lfs merge=lfs -text
|
79 |
+
src/jars/net/java/dev/jna/jna/5.15.0/jna-5.15.0.jar filter=lfs diff=lfs merge=lfs -text
|
80 |
+
src/jars/net/java/dev/jna/jna-platform/5.15.0/jna-platform-5.15.0.jar filter=lfs diff=lfs merge=lfs -text
|
81 |
+
src/jars/net/minidev/json-smart/2.5.1/json-smart-2.5.1.jar filter=lfs diff=lfs merge=lfs -text
|
82 |
+
src/jars/org/apache/commons/commons-compress/1.27.1/commons-compress-1.27.1.jar filter=lfs diff=lfs merge=lfs -text
|
83 |
+
src/jars/org/apache/commons/commons-lang3/3.17.0/commons-lang3-3.17.0.jar filter=lfs diff=lfs merge=lfs -text
|
84 |
+
src/jars/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar filter=lfs diff=lfs merge=lfs -text
|
85 |
+
src/jars/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar filter=lfs diff=lfs merge=lfs -text
|
86 |
+
src/jars/org/apache/logging/log4j/log4j-api/2.24.1/log4j-api-2.24.1.jar filter=lfs diff=lfs merge=lfs -text
|
87 |
+
src/jars/org/apache/logging/log4j/log4j-core/2.24.1/log4j-core-2.24.1.jar filter=lfs diff=lfs merge=lfs -text
|
88 |
+
src/jars/org/joml/joml/1.10.8/joml-1.10.8.jar filter=lfs diff=lfs merge=lfs -text
|
89 |
+
src/jars/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3-natives-windows-arm64.jar filter=lfs diff=lfs merge=lfs -text
|
90 |
+
src/jars/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3-natives-windows-x86.jar filter=lfs diff=lfs merge=lfs -text
|
91 |
+
src/jars/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
92 |
+
src/jars/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3.jar filter=lfs diff=lfs merge=lfs -text
|
93 |
+
src/jars/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-windows-arm64.jar filter=lfs diff=lfs merge=lfs -text
|
94 |
+
src/jars/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-windows-x86.jar filter=lfs diff=lfs merge=lfs -text
|
95 |
+
src/jars/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
96 |
+
src/jars/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3.jar filter=lfs diff=lfs merge=lfs -text
|
97 |
+
src/jars/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3-natives-windows-arm64.jar filter=lfs diff=lfs merge=lfs -text
|
98 |
+
src/jars/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3-natives-windows-x86.jar filter=lfs diff=lfs merge=lfs -text
|
99 |
+
src/jars/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
100 |
+
src/jars/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3.jar filter=lfs diff=lfs merge=lfs -text
|
101 |
+
src/jars/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-windows-arm64.jar filter=lfs diff=lfs merge=lfs -text
|
102 |
+
src/jars/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-windows-x86.jar filter=lfs diff=lfs merge=lfs -text
|
103 |
+
src/jars/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
104 |
+
src/jars/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3-natives-windows-arm64.jar filter=lfs diff=lfs merge=lfs -text
|
105 |
+
src/jars/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3-natives-windows-x86.jar filter=lfs diff=lfs merge=lfs -text
|
106 |
+
src/jars/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
107 |
+
src/jars/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3.jar filter=lfs diff=lfs merge=lfs -text
|
108 |
+
src/jars/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
109 |
+
src/jars/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3.jar filter=lfs diff=lfs merge=lfs -text
|
110 |
+
src/jars/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3-natives-windows-arm64.jar filter=lfs diff=lfs merge=lfs -text
|
111 |
+
src/jars/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3-natives-windows-x86.jar filter=lfs diff=lfs merge=lfs -text
|
112 |
+
src/jars/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
113 |
+
src/jars/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3.jar filter=lfs diff=lfs merge=lfs -text
|
114 |
+
src/jars/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3-natives-windows-arm64.jar filter=lfs diff=lfs merge=lfs -text
|
115 |
+
src/jars/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3-natives-windows-x86.jar filter=lfs diff=lfs merge=lfs -text
|
116 |
+
src/jars/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3-natives-windows.jar filter=lfs diff=lfs merge=lfs -text
|
117 |
+
src/jars/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar filter=lfs diff=lfs merge=lfs -text
|
118 |
+
src/jars/org/ow2/asm/asm/9.6/asm-9.6.jar filter=lfs diff=lfs merge=lfs -text
|
119 |
+
wasm_gc_teavm/buildtools/closure-compiler.jar filter=lfs diff=lfs merge=lfs -text
|
120 |
+
wasm_gc_teavm/buildtools/org.tukanni.xz.jar filter=lfs diff=lfs merge=lfs -text
|
121 |
+
wasm_gc_teavm/javascript/classes.wasm-deobfuscator.wasm filter=lfs diff=lfs merge=lfs -text
|
122 |
+
wasm_gc_teavm/javascript/loader.wasm filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.gradle
|
2 |
+
.settings
|
3 |
+
.classpath
|
4 |
+
.project
|
5 |
+
build
|
6 |
+
bin
|
7 |
+
proxyServer/bin
|
8 |
+
proxyServer/rundir
|
9 |
+
desktopRuntime/_eagstorage*
|
10 |
+
desktopRuntime/eclipseProject/bin*
|
11 |
+
desktopRuntime/hs_err_*
|
12 |
+
desktopRuntime/crash-reports/*
|
13 |
+
desktopRuntime/options.txt
|
14 |
+
desktopRuntime/_eagstorage*
|
15 |
+
desktopRuntime/filesystem/*
|
16 |
+
desktopRuntime/downloads/*
|
17 |
+
desktopRuntime/screenshots/*
|
CompileEPK.bat
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@echo off
|
2 |
+
title epkcompiler
|
3 |
+
echo compiling, please wait...
|
4 |
+
java -jar "desktopRuntime/CompileEPK.jar" "desktopRuntime/resources" "javascript/assets.epk"
|
5 |
+
echo finished compiling epk
|
6 |
+
pause
|
CompileEPK.sh
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
java -jar "desktopRuntime/CompileEPK.jar" "desktopRuntime/resources" "javascript/assets.epk"
|
CompileJS.bat
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@echo off
|
2 |
+
title gradlew generateJavascript
|
3 |
+
call gradlew generateJavascript
|
4 |
+
pause
|
CompileJS.sh
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
chmod +x gradlew
|
3 |
+
./gradlew --rerun-tasks -- generateJavascript
|
EAGLERCRAFTX_README.md
ADDED
@@ -0,0 +1,263 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# EaglercraftX 1.8
|
3 |
+
|
4 |
+
### Play Minecraft 1.8 in your browser, supports singleplayer and multiplayer
|
5 |
+
|
6 |
+

|
7 |
+
|
8 |
+
### This repository contains:
|
9 |
+
|
10 |
+
- **Utilities to decompile Minecraft 1.8 and apply patch files to it**
|
11 |
+
- **Source code to provide the LWJGL keyboard, mouse, and OpenGL APIs in a browser**
|
12 |
+
- **Patch files to mod the Minecraft 1.8 source code to make it browser compatible**
|
13 |
+
- **Browser-modified portions of Minecraft 1.8's open-source dependencies**
|
14 |
+
- **Plugins for Minecraft servers to allow the eagler client to connect to them**
|
15 |
+
|
16 |
+
### This repository does NOT contain:
|
17 |
+
|
18 |
+
- **Any portion of the decompiled Minecraft 1.8 source code or resources**
|
19 |
+
- **Any portion of Mod Coder Pack and it's config files**
|
20 |
+
- **Data that can be used alone to reconstruct portions of the game's source code**
|
21 |
+
|
22 |
+
## Getting Started:
|
23 |
+
|
24 |
+
### To compile the latest version of the JavaScript client, on Windows:
|
25 |
+
|
26 |
+
1. Make sure you have at least Java 11 installed and added to your PATH, it is recommended to use Java 17
|
27 |
+
2. Download (clone) this repository to your computer
|
28 |
+
3. Double click `CompileLatestClient.bat`, a GUI resembling a classic windows installer should open
|
29 |
+
4. Follow the steps shown to you in the new window to finish compiling
|
30 |
+
|
31 |
+
### To compile the latest version of the JavaScript client, on Linux/macOS:
|
32 |
+
|
33 |
+
1. Make sure you have at least Java 11 installed, it is recommended to use Java 17
|
34 |
+
2. Download (clone) this repository to your computer
|
35 |
+
3. Open a terminal in the folder the repository was cloned to
|
36 |
+
4. Type `chmod +x CompileLatestClient.sh` and hit enter
|
37 |
+
5. Type `./CompileLatestClient.sh` and hit enter, a GUI resembling a classic windows installer should open
|
38 |
+
6. Follow the steps shown to you in the new window to finish compiling
|
39 |
+
|
40 |
+
### To set up the development environment
|
41 |
+
|
42 |
+
1. Prepare the required files in the mcp918 folder ([readme](mcp918/readme.txt))
|
43 |
+
2. Run the `build_init` script
|
44 |
+
3. Run the `build_make_workspace` script
|
45 |
+
|
46 |
+
## Browser Compatibility
|
47 |
+
|
48 |
+
The JavaScript runtime of EaglercraftX 1.8 is currently known to work on browsers as old as Chrome 38 on Windows XP, the game supports both WebGL 1.0 and WebGL 2.0 however features such as dynamic lighting and PBR shaders require WebGL 2.0. The game also supports mobile browsers that don't have a keyboard or mouse, the game will enter touch screen mode automatically when touch input is detected. The game also includes an embedded OGG codec (JOrbis) for loading audio files on iOS where the browsers don't support loading OGG files in an AudioContext.
|
49 |
+
|
50 |
+
## WebAssembly GC Support
|
51 |
+
|
52 |
+
EaglercraftX 1.8 also has an experimental WebAssembly GC (WASM-GC) runtime, almost all of the features supported on the JavaScript runtime are also supported on the WebAssembly GC runtime, however it is still incompatible with several major browsers (especially Safari) and will not run in Chrome unless you can access the `chrome://flags` menu or request an origin trial token from Google for your website. Its based on experimental technology and may still crash sometimes due to browser bugs or unresolved issues in the Java to WASM compiler. Hopefully in the coming months the required feature (JSPI, WebAssembly JavaScript Promise Integration) will become enabled by default on the Chrome browser. It performs significantly better than the JavaScript client, around 50% more FPS and TPS in some cases, and will hopefully replace it someday. Just make sure you enable VSync when you play it, otherwise the game will run "too fast" and choke the browser's event loop, causing input lag.
|
53 |
+
|
54 |
+
You can compile the WebAssembly GC runtime by creating a development environment (workspace) and reading the README in the "wasm_gc_teavm" folder.
|
55 |
+
|
56 |
+
## Singleplayer
|
57 |
+
|
58 |
+
EaglercraftX 1.8 fully supports singleplayer mode through an integrated server. Worlds are saved to your browser's local storage and are available even if your device does not have an internet connection. You can also import and export worlds in EaglercraftX as EPK files to copy them between devices and send them to your friends.
|
59 |
+
|
60 |
+
You can also import and export your existing vanilla Minecraft 1.8 worlds into EaglercraftX using ZIP files if you want to try playing all your old 1.8 maps in a modern browser. The glitch that caused some chunks to become corrupt when exporting worlds as vanilla in Eaglercraft 1.5.2 no longer happens in EaglercraftX 1.8, its perfect now. Beware that the inventories of LAN world players are not saved when the world is converted to vanilla, and pets (dogs, cats, horses, etc) might sometimes forget their owners due to the UUID changes.
|
61 |
+
|
62 |
+
## Shared Worlds
|
63 |
+
|
64 |
+
**This feature used to be known as "LAN Worlds" but has been renamed to "Shared Worlds" to avoid confusion**
|
65 |
+
|
66 |
+
If you would like to invite other players to join your singleplayer world and play the game together, use the "Invite" button in the pause menu. You can configure gamemode and cheats for the other players joining your world, you can also decide if you would like to hide your world from other people on your wifi network or advertise your world to them. If hidden is "off" then other people on your same wifi network will see your world listed on their game's "Multiplayer" screen with all of their servers like how sharing LAN worlds behave in vanilla Minecraft 1.8.
|
67 |
+
|
68 |
+
Once you press "Start Shared World", EaglercraftX 1.8 will give you a "join code" (usually 5 letters) to share with your friends. On a different device, go the "Multiplayer" screen and press "Direct Connect" and press "Join Shared World", enter the join code given to you when you started the shared world and press "Join World". Given a few seconds, the client should successfully be able to join your shared world from any other device on the internet that also has unrestricted internet access. If it does not work, check the "Network Settings" screen and make sure you and your friends all have the same set of shared world relay URLs configured or your clients will not be able to find each other.
|
69 |
+
|
70 |
+
If you would like to host your own relay, the JAR file and instructions can be downloaded from the "Network Settings" screen in the client. EaglercraftX 1.8 uses the same "LAN world" relay server that is used by Eaglercraft 1.5.2, however there have been several bug fixes. The current version is available in the `sp-relay/SharedWorldRelay` folder.
|
71 |
+
|
72 |
+
## PBR Shaders
|
73 |
+
|
74 |
+
EaglercraftX 1.8 includes a deferred physically-based renderer modeled after the GTA V rendering engine with many new improvements and a novel raytracing technique for fast realistic reflections. It can be enabled in the "Shaders" menu in the game's options screen. Shader packs in EaglercraftX are just a component of resource packs, so any custom shaders you install will be in the form of a resource pack. EaglercraftX also comes with a very well optimized built-in PBR shader pack and also a built-in PBR material texture pack to give all blocks and items in the game realistic lighting and materials that looks better than most vanilla Minecraft shader packs. The default shader and texture packs were created from scratch by lax1dude, shaders packs made for vanilla Minecraft will not work in EaglercraftX and no shaders in EaglercraftX were taken from vanilla Minecraft shader packs. The shaders are not available in WebGL 1.0 mode or if floating point HDR render targets are not fully supported.
|
75 |
+
|
76 |
+
## Voice Chat
|
77 |
+
|
78 |
+
EaglercraftX 1.8 includes an integrated voice-chat service that can be used in shared worlds and also on multiplayer servers when it is enabled by the server owner. This feature also uses WebRTC like shared worlds, so be careful that you don't leak your IP address accidentally by using it on a public server. If you own a website and don't want people to use voice chat on it, edit the `eaglercraftXOpts` variable in your index.html and add `allowVoiceClient: false`.
|
79 |
+
|
80 |
+
## Resource Packs
|
81 |
+
|
82 |
+
EaglercraftX 1.8 allows you to use any vanilla Minecraft 1.8 resource pack in your browser by importing it as a zip file, resource packs are saved to your browser's local storage and are saved between page refreshes. This can be used to add the original C418 soundtrack back into the game, download and import [this pack](https://bafybeiayojww5jfyzvlmtuk7l5ufkt7nlfto7mhwmzf2vs4bvsjd5ouiuq.ipfs.nftstorage.link/?filename=Music_For_Eaglercraft.zip) to add music back to Eaglercraft. A known bug with the debug desktop runtime is that sound files in resource packs do not play, this may be fixed in the future but is not a high priority issue.
|
83 |
+
|
84 |
+
If you are creating a resource pack and want to disable the blur filter on the main menu panorama, create a file called `assets/minecraft/textures/gui/title/background/enable_blur.txt` in your pack and set it's contents to `enable_blur=0`
|
85 |
+
|
86 |
+
## Making a Server
|
87 |
+
|
88 |
+
To make a server for EaglercraftX 1.8 the recommended software to use is EaglercraftXBungee ("EaglerXBungee") which is included in this repository in the `gateway/EaglercraftXBungee` folder. This is a plugin designed to be used with BungeeCord to allow Eaglercraft players to join your BungeeCord server. It is assumed that the reader already knows what BungeeCord is and has a working server set up that is joinable via java edition. If you don't know what BungeeCord is, please research the topic yourself first before continuing. Waterfall and FlameCord have also been tested, but EaglerXBungee was natively compiled against BungeeCord.
|
89 |
+
|
90 |
+
There is an experimental velocity plugin available in `gateway/EaglercraftXVelocity` but it is still in development and not recommended for public servers, so be sure to check for updates regularly if you use it. Configuration files are basically identical to EaglercraftXBungee so its safe to just directy copy in your old EaglercraftXBungee config files to the `plugins/eaglerxvelocity` folder and they should work with a minimal number of edits if you are migrating your network from BungeeCord to Velocity.
|
91 |
+
|
92 |
+
**Warning:** Both EaglerXBungee and EaglerXVelocity perform a lot of reflection that will inevitably break after a while when BungeeCord or Velocity is updated upstream. Both plugins will display the precise build number of BungeeCord and Velocity that has been tested by the developers and known to be compatible with EaglerXBungee and EaglerXVelocity when the proxy first starts up. If you are experiencing issues, try checking the BungeeCord or Velocity website for old versions and find the closest version number to whatever the current compatible version number is that is printed by EaglerXBungee/EaglerXVelocity, it will probably fix whatever missing functions the error messages are complaining about.
|
93 |
+
|
94 |
+
### Detailed READMEs
|
95 |
+
|
96 |
+
- [**EaglerXBungee README**](README_EAGLERXBUNGEE.md)
|
97 |
+
- [**EaglerXVelocity README**](README_EAGLERXVELOCITY.md)
|
98 |
+
- [**EaglerXBukkitAPI README**](README_EAGLERXBUKKITAPI.md)
|
99 |
+
|
100 |
+
### Installation
|
101 |
+
|
102 |
+
Obtain the latest version of the EaglerXBungee JAR file (it can be downloaded in the client from the "Multiplayer" screen) and place it in the "plugins" folder of your BungeeCord server. It's recommended to only join native Minecraft 1.8 servers through an EaglerXBungee server but plugins like ProtocolSupport have allowed some people to join newer servers too.
|
103 |
+
|
104 |
+
Configuration files and other plugin data will be written in `plugins/EaglercraftXBungee`
|
105 |
+
|
106 |
+
### Online Mode Instructions
|
107 |
+
|
108 |
+
1. Enable `online_mode` in BungeeCord's `config.yml` file and make sure it works
|
109 |
+
2. Join the BungeeCord server using Minecraft Java Edition while logged into your Microsoft account
|
110 |
+
3. Run the `/eagler` command, it will give you a temporary login code
|
111 |
+
4. Disconnect from the server, close java edition, launch EaglercraftX 1.8
|
112 |
+
5. Set your profile username to the username of your Microsoft account
|
113 |
+
6. Go to the "Multiplayer" menu, press "Direct Connect", press "Connect to Server", then enter "ws://localhost:8081/"
|
114 |
+
7. If you are using a VPS, replace "localhost" with the IP address of the VPS when you connect
|
115 |
+
8. Press "Join Server", a login screen will be displayed, enter the temporary login code into the password field
|
116 |
+
9. EaglerXBungee will log you into the server as the Microsoft account you generated the login code with
|
117 |
+
|
118 |
+
Players using EaglercraftX will be able to see the vanilla skins of players on the server using vanilla Minecraft, but players on the server using vanilla Minecraft won't be able to see the skins of players using Eaglercraft. Instead they will see the skin of the Minecraft account that was used when the Eaglercraft player originally ran the `/eagler` command.
|
119 |
+
|
120 |
+
To disable this vanilla player skin feature and stop the plugin from downloading the textures of any player heads spawned with commands, edit the EaglercraftXBungee `settings.yml` file in the `plugins/EaglercraftXBungee` folder and change `download_vanilla_skins_to_clients` to `false`. Ratelimits configured in `settings.yml` define the maximum number of times per minute a single player is allowed to trigger profile/skin lookups and also define the maximum number of times per minute the entire server is allowed to actually perform profile/skin lookups.
|
121 |
+
|
122 |
+
By default, EaglercraftXBungee will use a local SQLite database in the server's working directory to store player skins and authentication codes. SQLite will be downloaded automatically if it is not already present. If you would like to use MySQL or something else instead, EaglercraftXBungee is JDBC-based and supports any database type that you can find a driver for. You can set the path of the database, path of the driver JAR, and the name of the driver class (example: `org.sqlite.JDBC`) for storing player skins in `settings.yml` and for storing login codes and profiles in `authservice.yml`.
|
123 |
+
|
124 |
+
### Offline Mode Instructions
|
125 |
+
|
126 |
+
By setting `online_mode` to `false` in the BungeeCord `config.yml` the authentication system will be disabled and players will no longer be required to first generate a code to log in. This should only be used for testing or if you can't get the authentication system to work. EaglercraftXBungee's skin system is supposed to be able to display SkinsRestorer skins if you plan to have vanilla players on the server but it's not guaranteed.
|
127 |
+
|
128 |
+
### Built-in HTTP server
|
129 |
+
|
130 |
+
When configuring the EaglercraftXBungee `listeners.yml` file, every listener includes an `http_server` section that can be used to configure the listener to also behave like a regular HTTP server when the websocket address is entered into a browser. If this is disabled people will get the normal "404 Websocket Upgrade Failure" instead when they accidentally type your server address into their browser. `root` defines the path to the folder containing index.html and the other files you want to host, relative to the `plugins/EaglercraftXBungee` folder. This can be useful for hosting the client if the offline download doesn't work for some reason but might slow your BungeeCord server down if lots of people are loading it all the time.
|
131 |
+
|
132 |
+
### Enabling Voice Chat
|
133 |
+
|
134 |
+
Voice chat is disabled by default in EaglercraftXBungee because it is not recommended for use on public servers. To enable it, add or change `allow_voice: true` to your EaglercraftXBungee `listeners.yml` file. The main difference between Eaglercraft 1.5.2 and EaglercraftX 1.8's voice chat feature is that the "Global" channel now only includes other players on the same server as you instead of every single player connected to the same bungeecord proxy. If you would like to disable voice chat on certain servers, add the names of the servers to the `disable_voice_chat_on_servers` list in the EaglercraftXBungee `settings.yml` file. You may have to add this property to the YML file manually if you've upgraded your server from an older version of EaglercraftXBungee.
|
135 |
+
|
136 |
+
### Disabling FNAW Skins
|
137 |
+
|
138 |
+
Players are known to complain about the high-poly Five Nights At Winstons character skins making PVP harder because of the belief that they change a player's hitbox. If you would like to disable those skins in your PVP worlds you can either set `disable_fnaw_skins_everywhere: true` in your EaglercraftXBungee `settings.yml` file to disable them for all players on your whole BungeeCord proxy, or you can disable them on specific servers by adding the names of the servers to the `disable_fnaw_skins_on_servers` list also in `settings.yml` like with disabling voice chat.
|
139 |
+
|
140 |
+
## Launch Options
|
141 |
+
|
142 |
+
The EaglercraftX 1.8 client is configured primarily through a variable called `window.eaglercraftXOpts` that must be set before the client starts up.
|
143 |
+
|
144 |
+
The default eaglercraftXOpts values is this:
|
145 |
+
|
146 |
+
const relayId = Math.floor(Math.random() * 3);
|
147 |
+
window.eaglercraftXOpts = {
|
148 |
+
demoMode: false,
|
149 |
+
container: "game_frame",
|
150 |
+
assetsURI: "assets.epk",
|
151 |
+
localesURI: "lang/",
|
152 |
+
worldsDB: "worlds",
|
153 |
+
servers: [
|
154 |
+
{ addr: "ws://localhost:8081/", name: "Local test server" }
|
155 |
+
],
|
156 |
+
relays: [
|
157 |
+
{ addr: "wss://relay.deev.is/", comment: "lax1dude relay #1", primary: relayId == 0 },
|
158 |
+
{ addr: "wss://relay.lax1dude.net/", comment: "lax1dude relay #2", primary: relayId == 1 },
|
159 |
+
{ addr: "wss://relay.shhnowisnottheti.me/", comment: "ayunami relay #1", primary: relayId == 2 }
|
160 |
+
]
|
161 |
+
};
|
162 |
+
|
163 |
+
### List of available options
|
164 |
+
|
165 |
+
- `container:` the ID of the HTML element to create the canvas in **(required)**
|
166 |
+
- `assetsURI:` the URL of the assets.epk file **(required)**
|
167 |
+
- `localesURI:` the URL where extra .lang files can be found
|
168 |
+
- `lang`: the default language to use for the game (like "en_US")
|
169 |
+
- `joinServer`: server address to join when the game launches
|
170 |
+
- `worldsDB:` the name of the IndexedDB database to store worlds in
|
171 |
+
- `resourcePacksDB:` the name of the IndexedDB database to store resource packs in
|
172 |
+
- `demoMode:` whether to launch the game in java edition demo mode
|
173 |
+
- `servers:` a list of default servers to display on the Multiplayer screen
|
174 |
+
- `relays:` the default list of shared world relays to use for invites
|
175 |
+
- `checkGLErrors:` if the game should check for opengl errors
|
176 |
+
- `checkShaderGLErrors:` enables more verbose opengl error logging for the shaders
|
177 |
+
- `enableDownloadOfflineButton:` whether to show a "Download Offline" button on the title screen
|
178 |
+
- `downloadOfflineButtonLink:` overrides the download link for the "Download Offline" button
|
179 |
+
- `html5CursorSupport:` enables support for showing the CSS "pointer" cursor over buttons
|
180 |
+
- `allowUpdateSvc:` enables the certificate-based update system
|
181 |
+
- `allowUpdateDL:` allows the client to download new updates it finds
|
182 |
+
- `logInvalidCerts:` print update certificates with invalid signatures to console
|
183 |
+
- `enableSignatureBadge:` show a badge on the title screen indicating if digital signature is valid
|
184 |
+
- `checkRelaysForUpdates:` proprietary feature used in offline downloads
|
185 |
+
- `allowVoiceClient:` can be used to disable the voice chat feature
|
186 |
+
- `allowFNAWSkins:` can be used to disable the high poly FNAW skins
|
187 |
+
- `localStorageNamespace:` can be used to change the prefix of the local storage keys (Default: `"_eaglercraftX"`)
|
188 |
+
- `enableMinceraft:` can be used to disable the "Minceraft" title screen
|
189 |
+
- `crashOnUncaughtExceptions:` display crash reports when `window.onerror` is fired
|
190 |
+
- `openDebugConsoleOnLaunch:` open debug console automatically at launch
|
191 |
+
- `fixDebugConsoleUnloadListener:` close debug console beforeunload instead of unload
|
192 |
+
- `forceWebViewSupport:` if the server info webview should be allowed even on browsers without the required safety features
|
193 |
+
- `enableWebViewCSP:` if the `csp` attibute should be set on the server info webview for extra security
|
194 |
+
- `enableServerCookies:` can be used to disable server cookies
|
195 |
+
- `allowServerRedirects:` if servers should be allowed to make the client reconnect to a different address
|
196 |
+
- `autoFixLegacyStyleAttr:` if the viewport meta tag and style attributes on old offline downloads and websites should be automatically patched
|
197 |
+
- `showBootMenuOnLaunch:` if the client should always show the boot menu on every launch
|
198 |
+
- `bootMenuBlocksUnsignedClients:` if the boot menu should only be allowed to launch signed clients
|
199 |
+
- `allowBootMenu:` can be used to disable the boot menu entirely
|
200 |
+
- `forceProfanityFilter:` if the profanity filter should be forced enabled
|
201 |
+
- `forceWebGL1:` if the game should force the browser to only use WebGL 1.0 for the canvas
|
202 |
+
- `forceWebGL2:` if the game should force the browser to only use WebGL 2.0 for the canvas
|
203 |
+
- `allowExperimentalWebGL1:` if the game should be allowed to create an `experimental-webgl` context
|
204 |
+
- `useWebGLExt:` can be used to disable all OpenGL ES extensions to test the game on a pure WebGL 1.0/2.0 context
|
205 |
+
- `useDelayOnSwap:` if the game should `setTimeout(..., 0)` every frame instead of using MessageChannel hacks
|
206 |
+
- `useJOrbisAudioDecoder:` if OGG vorbis files should be decoded using the JOrbis Java OGG decoder instead of using the browser
|
207 |
+
- `useXHRFetch:` if the game should use XMLHttpRequest for downloading resources instead of the fetch API
|
208 |
+
- `useVisualViewport:` if the game should resize some GUIs relative to `window.visualViewport` (needed on mobile browsers when the keyboard is open)
|
209 |
+
- `deobfStackTraces:` can be used to disable the runtime stack-trace deobfuscation, reduces micro stutters if the game is logging errors
|
210 |
+
- `disableBlobURLs:` if the game should use `data:` URLs instead of `blob:` URLs for loading certain resources
|
211 |
+
- `eaglerNoDelay:` can be used to disable "Vigg's Algorithm", an algorithm that delays and combines multiple EaglercraftX packets together if they are sent in the same tick (does not affect regular Minecraft 1.8 packets)
|
212 |
+
- `ramdiskMode:` if worlds and resource packs should be stored in RAM instead of IndexedDB
|
213 |
+
- `singleThreadMode:` if the game should run the client and integrated server in the same context instead of creating a worker object
|
214 |
+
- `enableEPKVersionCheck:` if the game should attempt to bypass the browser's cache and retry downloading assets.epk when its outdated
|
215 |
+
- `enforceVSync:` (WASM only) if the game should automatically re-enable VSync at launch if its disabled
|
216 |
+
- `hooks:` can be used to define JavaScript callbacks for certain events
|
217 |
+
* `localStorageSaved:` JavaScript callback to save local storage keys (key, data)
|
218 |
+
* `localStorageLoaded:` JavaScript callback to load local storage keys (key) returns data
|
219 |
+
* `crashReportShow:` JavaScript callback when a crash report is shown (report, customMessageCB)
|
220 |
+
* `screenChanged:` JavaScript callback when the screen changes/resizes (screenName, scaledWidth, scaledHeight, realWidth, realHeight, scaleFactor)
|
221 |
+
|
222 |
+
### Using Hooks
|
223 |
+
|
224 |
+
You may want to implement some custom logic for loading/saving certain local storage keys. The eaglercraftXOpts hooks section can be used to override the client's local storage load and save functions. Currently, local storage keys are used to save game settings, the user's profile, custom servers, and shared world relays. Worlds and resource packs do not use local storage keys because modern browsers limit local storage keys to only 5 megabytes per domain which is too small for saving entire worlds and resource packs. Worlds and resource packs are saved using [IndexedDB](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API).
|
225 |
+
|
226 |
+
window.eaglercraftXOpts = {
|
227 |
+
...
|
228 |
+
...
|
229 |
+
...
|
230 |
+
hooks: {
|
231 |
+
localStorageSaved: function(key, data) {
|
232 |
+
// 'key' is local storage key name as a string
|
233 |
+
// 'data' is base64-encoded byte array as a string
|
234 |
+
// function returns nothing
|
235 |
+
},
|
236 |
+
localStorageLoaded: function(key) {
|
237 |
+
// 'key' is local storage key name as a string
|
238 |
+
// function returns a base64-encoded byte array as a string
|
239 |
+
// function returns null if the key does not exist
|
240 |
+
}
|
241 |
+
}
|
242 |
+
}
|
243 |
+
|
244 |
+
Be aware that the client will still save the key to the browser's local storage anyway even if you define a custom save handler, and will just attempt to load the key from the browser's local storage normally if you return null, these are meant to be used like event handlers for creating backups of keys instead of completely replacing the local storage save and load functions.
|
245 |
+
|
246 |
+
On a normal client you will only ever need to handle local storage keys called `p` (profile), `g` (game settings), `s` (server list), `r` (shared world relays), in your hooks functions. Feel free to just ignore any other keys. It is guaranteed that the data the client stores will always be valid base64, so it is best practice to decode it to raw binary first if possible to reduce it's size before saving it to something like a MySQL database in your backend if you are trying to implement some kind of profile syncing system for your website. The keys already have GZIP compression applied to them by default so don't bother trying to compress them yourself a second time because it won't reduce their size.
|
247 |
+
|
248 |
+
### Crash Report Hook
|
249 |
+
|
250 |
+
The `crashReportShow` hook can be used to capture crash reports and append additional text to them. It takes two parameters, the crash report as a string and a callback function for appending text. Do not use the callback function outside the body of the hook.
|
251 |
+
|
252 |
+
hooks: {
|
253 |
+
crashReportShow: function(report, customMessageCB) {
|
254 |
+
// 'report' is crash report as a string
|
255 |
+
customMessageCB("Hello from crashReportShow hook!");
|
256 |
+
}
|
257 |
+
}
|
258 |
+
|
259 |
+
## Developing a Client
|
260 |
+
|
261 |
+
There is currently no system in place to make forks of 1.8 and merge commits made to the patch files in this repository with the patch files or workspace of the fork, you're on your own if you try to keep a fork of this repo for reasons other than to contribute to it
|
262 |
+
|
263 |
+
**Note:** If you are trying to use the desktop runtime on Linux, make sure you add the "desktopRuntime" folder to the `LD_LIBRARY_PATH` environment variable of the Java process. This should be done automatically by the Eclipse project's default run configuration, but it might not work properly on every system, or when the Eclipse project is imported into IntelliJ.
|
MakeOfflineDownload.bat
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@echo off
|
2 |
+
title MakeOfflineDownload
|
3 |
+
java -cp "desktopRuntime/MakeOfflineDownload.jar;desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "javascript/EaglercraftX_1.8_Offline_en_US.html" "javascript/EaglercraftX_1.8_Offline_International.html" "javascript/lang"
|
4 |
+
pause
|
MakeOfflineDownload.sh
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
java -cp "desktopRuntime/MakeOfflineDownload.jar:desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeOfflineDownload "javascript/OfflineDownloadTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "javascript/EaglercraftX_1.8_Offline_en_US.html" "javascript/EaglercraftX_1.8_Offline_International.html" "javascript/lang"
|
MakeSignedClient.bat
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@echo off
|
2 |
+
title MakeSignedClient
|
3 |
+
java -cp "desktopRuntime/MakeOfflineDownload.jar;desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeSignedClient "javascript/SignedBundleTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "javascript/lang" "javascript/SignedClientTemplate.txt" "javascript/UpdateDownloadSources.txt" "javascript/EaglercraftX_1.8_Offline_Signed_Client.html"
|
4 |
+
pause
|
MakeSignedClient.sh
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
#!/bin/sh
|
2 |
+
java -cp "desktopRuntime/MakeOfflineDownload.jar:desktopRuntime/CompileEPK.jar" net.lax1dude.eaglercraft.v1_8.buildtools.workspace.MakeSignedClient "javascript/SignedBundleTemplate.txt" "javascript/classes.js" "javascript/assets.epk" "javascript/lang" "javascript/SignedClientTemplate.txt" "javascript/UpdateDownloadSources.txt" "javascript/EaglercraftX_1.8_Offline_Signed_Client.html"
|
README.md
CHANGED
@@ -1,10 +1,32 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### Java 17 is recommended for compiling to TeaVM
|
2 |
+
|
3 |
+
### Java 8 or greater is required for the desktop runtime
|
4 |
+
|
5 |
+
**Most Java IDEs will allow you to import this repository as a gradle project for compiling it to JavaScript.**
|
6 |
+
|
7 |
+
Java must be added to your PATH!
|
8 |
+
|
9 |
+
**To compile the web client:**
|
10 |
+
1. Run `CompileEPK`
|
11 |
+
2. Run `CompileJS` (or the `generateJavaScript` gradle task in your IDE)
|
12 |
+
3. Check the "javascript" folder
|
13 |
+
|
14 |
+
**To compile an offline download:**
|
15 |
+
1. Run `CompileEPK`
|
16 |
+
2. Run `CompileJS` (or the `generateJavaScript` gradle task in your IDE)
|
17 |
+
3. Run `MakeOfflineDownload`
|
18 |
+
4. Check the "javascript" folder
|
19 |
+
|
20 |
+
**To compile the WASM GC client:**
|
21 |
+
Consult the [README](wasm_gc_teavm/README.md) in the wasm_gc_teavm folder
|
22 |
+
|
23 |
+
**To use the desktop runtime:**
|
24 |
+
1. Import the Eclipse project in "desktopRuntime/eclipseProject" into your IDE
|
25 |
+
2. Open one of the .java files from the source folders (workaround for a bug)
|
26 |
+
3. Run/Debug the client with the included "eaglercraftDebugRuntime" configuration
|
27 |
+
|
28 |
+
**Note:** If you are trying to use the desktop runtime on Linux, make sure you add the "desktopRuntime" folder to the `LD_LIBRARY_PATH` environment variable of the Java process. This should be done automatically by the Eclipse project's default run configuration, but it might not work properly on every system, or when the Eclipse project is imported into IntelliJ.
|
29 |
+
|
30 |
+
**See the main 1.8 repository's README for more info**
|
31 |
+
|
32 |
+
The source codes of EaglercraftXBungee and EaglercraftXVelocity are not included here.
|
build.gradle
ADDED
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import org.teavm.gradle.api.OptimizationLevel
|
2 |
+
|
3 |
+
buildscript {
|
4 |
+
repositories {
|
5 |
+
mavenLocal()
|
6 |
+
maven { url = 'https://maven.minecraftforge.net' }
|
7 |
+
mavenCentral()
|
8 |
+
gradlePluginPortal()
|
9 |
+
}
|
10 |
+
dependencies {
|
11 |
+
classpath files("src/teavmc-classpath/resources")
|
12 |
+
classpath 'net.minecraftforge.gradle:ForgeGradle:6+'
|
13 |
+
classpath "gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:1.1.3"
|
14 |
+
}
|
15 |
+
}
|
16 |
+
|
17 |
+
import net.minecraftforge.gradle.common.util.Utils
|
18 |
+
import net.minecraftforge.gradle.common.util.VersionJson
|
19 |
+
|
20 |
+
plugins {
|
21 |
+
id "java"
|
22 |
+
id "eclipse"
|
23 |
+
id "org.teavm" version "0.9.2"
|
24 |
+
}
|
25 |
+
|
26 |
+
sourceSets {
|
27 |
+
main {
|
28 |
+
java {
|
29 |
+
srcDirs(
|
30 |
+
"src/main/java",
|
31 |
+
"src/game/java",
|
32 |
+
"src/protocol-game/java",
|
33 |
+
"src/protocol-relay/java",
|
34 |
+
"src/teavm/java",
|
35 |
+
"src/teavm-boot-menu/java"
|
36 |
+
)
|
37 |
+
}
|
38 |
+
}
|
39 |
+
|
40 |
+
}
|
41 |
+
|
42 |
+
repositories {
|
43 |
+
mavenCentral()
|
44 |
+
maven { url = 'https://libraries.minecraft.net/' }
|
45 |
+
maven { url = 'https://maven.minecraftforge.net' }
|
46 |
+
}
|
47 |
+
|
48 |
+
dependencies {
|
49 |
+
teavm(teavm.libs.jso)
|
50 |
+
teavm(teavm.libs.jsoApis)
|
51 |
+
compileOnly "org.teavm:teavm-core:0.9.2" // workaround for a few hacks
|
52 |
+
|
53 |
+
// Minecraft 1.21.5 relevante Dependencies
|
54 |
+
implementation 'org.apache.logging.log4j:log4j-api:2.24.1'
|
55 |
+
implementation 'org.apache.logging.log4j:log4j-slf4j2-impl:2.24.1'
|
56 |
+
implementation 'org.apache.logging.log4j:log4j-core:2.24.1'
|
57 |
+
implementation 'org.apache.httpcomponents:httpcore:4.4.16'
|
58 |
+
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
|
59 |
+
implementation 'org.apache.commons:commons-lang3:3.17.0'
|
60 |
+
implementation 'org.apache.commons:commons-compress:1.27.1'
|
61 |
+
implementation 'org.lwjgl:lwjgl-glfw:3.3.3'
|
62 |
+
implementation 'org.lwjgl:lwjgl:3.3.3'
|
63 |
+
implementation 'org.lwjgl:lwjgl-jemalloc:3.3.3'
|
64 |
+
implementation 'org.lwjgl:lwjgl-opengl:3.3.3'
|
65 |
+
implementation 'org.lwjgl:lwjgl-freetype:3.3.3'
|
66 |
+
implementation 'org.lwjgl:lwjgl-stb:3.3.3'
|
67 |
+
implementation 'org.lwjgl:lwjgl-tinyfd:3.3.3'
|
68 |
+
implementation 'org.lwjgl:lwjgl-openal:3.3.3'
|
69 |
+
implementation 'org.joml:joml:1.10.8'
|
70 |
+
implementation 'org.lz4:lz4-java:1.8.0'
|
71 |
+
implementation 'org.ow2.asm:asm:9.6'
|
72 |
+
implementation 'org.slf4j:slf4j-api:2.0.16'
|
73 |
+
implementation 'org.jcraft:jorbis:0.0.17'
|
74 |
+
implementation 'org.jetbrains:annotations:24.1.0'
|
75 |
+
implementation 'it.unimi.dsi:fastutil:8.5.15'
|
76 |
+
implementation 'commons-io:commons-io:2.17.0'
|
77 |
+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.4.2'
|
78 |
+
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.4'
|
79 |
+
implementation 'com.fasterxml.jackson.core:jackson-core:2.13.4'
|
80 |
+
implementation 'com.ibm.icu:icu4j:76.1'
|
81 |
+
implementation 'com.microsoft.azure:msal4j:1.17.2'
|
82 |
+
implementation 'com.mojang:brigadier:1.3.10'
|
83 |
+
implementation 'com.mojang:datafixerupper:8.0.16'
|
84 |
+
implementation 'com.mojang:authlib:6.0.58'
|
85 |
+
implementation 'com.mojang:text2speech:1.18.11'
|
86 |
+
implementation 'com.mojang:blocklist:1.0.10'
|
87 |
+
implementation 'com.google.guava:guava:33.3.1-jre'
|
88 |
+
implementation 'com.google.code.gson:gson:2.11.0'
|
89 |
+
implementation 'com.github.oshi:oshi-core:6.6.5'
|
90 |
+
implementation 'com.github.stephenc.jcip:jcip-annotations:1.0-1'
|
91 |
+
implementation 'com.nimbusds:content-type:2.3'
|
92 |
+
implementation 'com.nimbusds:nimbus-jose-jwt:9.40'
|
93 |
+
implementation 'com.nimbusds:lang-tag:1.7'
|
94 |
+
implementation 'com.nimbusds:oauth2-oidc-sdk:11.18'
|
95 |
+
implementation 'commons-codec:commons-codec:1.17.1'
|
96 |
+
implementation 'io.netty:netty-transport:4.1.118.Final'
|
97 |
+
implementation 'io.netty:netty-transport-classes-epoll:4.1.118.Final'
|
98 |
+
implementation 'io.netty:netty-handler:4.1.118.Final'
|
99 |
+
implementation 'io.netty:netty-buffer:4.1.118.Final'
|
100 |
+
implementation 'io.netty:netty-resolver:4.1.118.Final'
|
101 |
+
implementation 'io.netty:netty-transport-native-unix-common:4.1.118.Final'
|
102 |
+
implementation 'io.netty:netty-common:4.1.118.Final'
|
103 |
+
implementation 'io.netty:netty-codec:4.1.118.Final'
|
104 |
+
implementation 'net.sf.jopt-simple:jopt-simple:5.0.4'
|
105 |
+
implementation 'net.java.dev.jna:jna-platform:5.15.0'
|
106 |
+
implementation 'net.java.dev.jna:jna:5.15.0'
|
107 |
+
implementation 'net.minecraftforge:forge:1.20.4-49.0.50'
|
108 |
+
implementation 'net.minecraftforge:forgespi:7.0.0'
|
109 |
+
implementation 'net.minidev:json-smart:2.5.1'
|
110 |
+
implementation 'net.minidev:accessors-smart:2.5.1'
|
111 |
+
implementation 'commons-logging:commons-logging:1.3.4'
|
112 |
+
implementation 'ca.weblite:java-objc-bridge:1.1'
|
113 |
+
implementation 'org.json:json:20240303'
|
114 |
+
//implementation files('com/mojang/logging/1.5.10/logging-1.5.10.jar')
|
115 |
+
//implementation files('com/mojang/jtracy/1.0.29/jtracy-1.0.29.jar')
|
116 |
+
//implementation files('com/mojang/jtracy/1.0.29/jtracy-1.0.29-natives-windows.jar')
|
117 |
+
//implementation files('com/mojang/patchy/2.2.10/patchy-2.2.10.jar')
|
118 |
+
// Lokale JARs (nur falls online nicht verfügbar)
|
119 |
+
implementation files(
|
120 |
+
'src/jars/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3-natives-windows-x86.jar',
|
121 |
+
'src/jars/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3-natives-windows.jar',
|
122 |
+
'src/jars/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3-natives-windows-arm64.jar',
|
123 |
+
'src/jars/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3-natives-windows-x86.jar',
|
124 |
+
'src/jars/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3-natives-windows-arm64.jar',
|
125 |
+
'src/jars/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3-natives-windows.jar',
|
126 |
+
'src/jars/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-windows-x86.jar',
|
127 |
+
'src/jars/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-windows-arm64.jar',
|
128 |
+
'src/jars/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3-natives-windows.jar',
|
129 |
+
'src/jars/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3-natives-windows.jar',
|
130 |
+
'src/jars/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3-natives-windows-x86.jar',
|
131 |
+
'src/jars/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3-natives-windows-arm64.jar',
|
132 |
+
'src/jars/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-windows-arm64.jar',
|
133 |
+
'src/jars/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-windows.jar',
|
134 |
+
'src/jars/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-windows-x86.jar',
|
135 |
+
'src/jars/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3-natives-windows.jar',
|
136 |
+
'src/jars/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3-natives-windows-x86.jar',
|
137 |
+
'src/jars/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3-natives-windows-arm64.jar',
|
138 |
+
'src/jars/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3-natives-windows.jar',
|
139 |
+
'src/jars/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3-natives-windows-arm64.jar',
|
140 |
+
'src/jars/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3-natives-windows-x86.jar',
|
141 |
+
'src/jars/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3-natives-windows-arm64.jar',
|
142 |
+
'src/jars/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3-natives-windows-x86.jar',
|
143 |
+
'src/jars/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3-natives-windows.jar',
|
144 |
+
// Die folgenden JARs sind NICHT öffentlich verfügbar:
|
145 |
+
'src/jars/com/mojang/jtracy/1.0.29/jtracy-1.0.29.jar',
|
146 |
+
'src/jars/com/mojang/jtracy/1.0.29/jtracy-1.0.29-natives-windows.jar',
|
147 |
+
'src/jars/com/mojang/patchy/2.2.10/patchy-2.2.10.jar',
|
148 |
+
'src/jars/com/mojang/logging/1.5.10/logging-1.5.10.jar'
|
149 |
+
)
|
150 |
+
}
|
151 |
+
|
152 |
+
def folder = "javascript"
|
153 |
+
def name = "classes.js"
|
154 |
+
|
155 |
+
teavm.js {
|
156 |
+
compileJava.options.encoding = "UTF-8"
|
157 |
+
obfuscated = true
|
158 |
+
sourceMap = true
|
159 |
+
targetFileName = "../" + name
|
160 |
+
optimization = OptimizationLevel.BALANCED // Change to "AGGRESSIVE" for release
|
161 |
+
outOfProcess = false
|
162 |
+
fastGlobalAnalysis = false
|
163 |
+
processMemory = 512
|
164 |
+
entryPointName = "main"
|
165 |
+
mainClass = "net.lax1dude.eaglercraft.v1_8.internal.teavm.MainClass"
|
166 |
+
outputDir = file(folder)
|
167 |
+
properties = [ "java.util.TimeZone.autodetect": "true" ]
|
168 |
+
debugInformation = false
|
169 |
+
}
|
170 |
+
|
171 |
+
tasks.named("generateJavaScript") {
|
172 |
+
doLast {
|
173 |
+
|
174 |
+
// NOTE: This step may break at any time, and is not required for 99% of browsers
|
175 |
+
|
176 |
+
def phile = file(folder + "/" + name)
|
177 |
+
def dest = phile.getText("UTF-8")
|
178 |
+
def i = dest.substring(0, dest.indexOf("=\$rt_globals.Symbol('jsoClass');")).lastIndexOf("let ")
|
179 |
+
dest = dest.substring(0, i) + "var" + dest.substring(i + 3)
|
180 |
+
def j = dest.indexOf("function(\$rt_globals,\$rt_exports){")
|
181 |
+
dest = dest.substring(0, j + 34) + "\n" + file(folder + "/ES6ShimScript.txt").getText("UTF-8") + "\n" + dest.substring(j + 34)
|
182 |
+
phile.write(dest, "UTF-8")
|
183 |
+
}
|
184 |
+
}
|
desktopRuntime/CompileEPK.jar
ADDED
Binary file (79.6 kB). View file
|
|
desktopRuntime/Java-WebSocket-1.5.1-with-dependencies.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d9e459ded192e0a9f4696cf24ae310d9f3b0550e52de759c1bdfaf218288dfc
|
3 |
+
size 173621
|
desktopRuntime/LICENSE
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2012-present Lightweight Java Game Library
|
2 |
+
All rights reserved.
|
3 |
+
|
4 |
+
Redistribution and use in source and binary forms, with or without
|
5 |
+
modification, are permitted provided that the following conditions are
|
6 |
+
met:
|
7 |
+
|
8 |
+
- Redistributions of source code must retain the above copyright
|
9 |
+
notice, this list of conditions and the following disclaimer.
|
10 |
+
|
11 |
+
- Redistributions in binary form must reproduce the above copyright
|
12 |
+
notice, this list of conditions and the following disclaimer in the
|
13 |
+
documentation and/or other materials provided with the distribution.
|
14 |
+
|
15 |
+
- Neither the name Lightweight Java Game Library nor the names of
|
16 |
+
its contributors may be used to endorse or promote products derived
|
17 |
+
from this software without specific prior written permission.
|
18 |
+
|
19 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
20 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
21 |
+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
22 |
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
23 |
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
24 |
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
25 |
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
26 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
27 |
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
28 |
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
29 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
desktopRuntime/MakeOfflineDownload.jar
ADDED
Binary file (24 kB). View file
|
|
desktopRuntime/OpenAL.dll
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0630aa42492f78126da1c4d99769632e03c55b2e63b050efe7e3005e07e3e6fc
|
3 |
+
size 1338368
|
desktopRuntime/RTWebViewClient.html
ADDED
@@ -0,0 +1,514 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
|
3 |
+
<!--
|
4 |
+
Copyright (c) 2024 lax1dude. All Rights Reserved.
|
5 |
+
|
6 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
7 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
8 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
9 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
10 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
11 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
12 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
13 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
14 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
15 |
+
POSSIBILITY OF SUCH DAMAGE.
|
16 |
+
-->
|
17 |
+
|
18 |
+
<html style="width:100%;height:100%;">
|
19 |
+
<head>
|
20 |
+
<meta charset="UTF-8" />
|
21 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
22 |
+
<title>Eaglercraft Desktop Runtime</title>
|
23 |
+
<link type="image/png" rel="shortcut icon" id="vigg" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAIAAAD8GO2jAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAR/SURBVEhLtZXZK3ZRFMYPcqXc+gv413DHxVuGIpIhkciQWaRccCNjSCkligwXSOZ5nmfv9zvn2e8+58V753sudmuvvdZ61l5r7XOc8H+GS/D19aUNkPz5+aktQH5/f//4+LBKZKuRkpUtQjCUYG5gD2T38vLy/PwsDfL9/f3Dw8PT05M0b29vnKLhCKCBT4L4gvBLBIei4//4+Hh1dUVEQutUuLu7E83FxQUGnKLBWKfQaA3S+AREVxaEOD8/Pzk50XpzcyMDcH19zdZG3N3d3dzc3Nvb01aX5pQUpQGGQJxcQpfNysoKhUIdHR1o1tbWbInYAgxIPDMzMy8vLzc3FxqOdMoRqwJK8G8ALUYIhHMiSEhIwI6CyIb0qQzC4eGhsXCc1tZWnZIEKzdQJQSXgKxfX18RCM3Z5eWlcfVAxKOjo+Pj49PTU88lTOk2NjbMsePc3t6SAfcgFdszOyMuAdeBg0CQi2lhYUHOeOLDCisN8FzcPFZXV3t7ezHY3t5GQ+6it+2xMASsKhEEWKsmRLRBBUpPvpJ/TpFKFBwKYAiITmicsbYhdHfJAltqhUCVsCQhwslmeXmZxiBQT9c0Ar9E2O3v72sYSE0N1yQArkKy0kBMXLqlZqIZHR3t6empqqqSDcBdhXEJSJ/bUc3q6uq+vj629GB9fR1WsLW1NTs7u7S0RN2locMjIyOEm5ubQ7+4uJienk4/+vv77Y1hwhLBEKhwWHitdVFfX9/Y2Gg2HuLi4owUAysrK8yCG97rh0+ApP5Q2ZycHFlPTExUVFRIBvn5+WhKSkp2dnaMKhptbW2426GgQ/rwuAQCZ1hwFayLiork9hMFBQV1dXVmE0BLS4vqw3QFB8kn4IAxoGPkYpxi4FeDmpqas7Mz4pClAgqGwD48rjY2NmacYqC0tJQ1KSlJWyE5OZkpUKkBAxZVIntAoZh04+Q48fHxPNGBgYHExMT29naj9cBodnZ2mo3jlJWVMeW2OGQck4B1amqqoaGhqamJjx2lGxwcpL0mUgR8fJhsWqJtSkoKU2SbHHUDpkhPBujd8xuQG6PJRM/Pz09PT7O1NNnZ2Tw3fgZkXVhYKCUlUhBATP+hCVyKZGky17RV0g04laayslJ6hlVeFHB4eFhKaogGd0LxtmTgE+hbhKDnPjMzgw8E3qGL2tpaBWpubjYqj2BoaEj6rq4uNATRZ0ZwCbiL6gXEzINk5vCBQJ9rMD4+rkA8QNK036uDg4Py8vLu7m680KjIBNR3zBDoWQM1g98snyB+VSoRW8C/UwR81/SvhgNj9JOTkwwVERUdRBEI0BAdLRVERkhLS8vIyEDQlrsTPTU1lVFhKxARvZgUlFLbegCf4BvIsbi4mIg4E5EogIHhiKCMtU0WUFiVy06j5fAJIDdSBDQw+PegDfBRcbOPwH4F9LuFWIIQdQNKwWqzIE0aoFUaBsw+SQuFw0uNtC9A+F4i3QNrbg3IDn+SAsHh+wYiEpeyBEMLv/cAO6KzAijxxB+Y4wisBhssJUhjEbPJf4Nw+B+JXqLW3bw+wQAAAABJRU5ErkJggg==" />
|
24 |
+
<script type="text/javascript">
|
25 |
+
"use strict";
|
26 |
+
(function() {
|
27 |
+
var webSocketURI = "${client_websocket_uri}";
|
28 |
+
if(webSocketURI === ("$" + "{client_websocket_uri}")) {
|
29 |
+
alert("Don't open this file in your browser");
|
30 |
+
window.addEventListener("load", function() {
|
31 |
+
document.body.innerHTML = "<p style=\"text-align:center;\">cunt</p>";
|
32 |
+
});
|
33 |
+
return;
|
34 |
+
}
|
35 |
+
var eaglercraftXOpts = {eaglercraftXOpts};
|
36 |
+
var cspAttrSupport = false;
|
37 |
+
var checkSupport = function() {
|
38 |
+
if(eaglercraftXOpts.forceWebViewSupport) {
|
39 |
+
cspAttrSupport = true;
|
40 |
+
return true;
|
41 |
+
}else {
|
42 |
+
var tempIFrameElement = document.createElement("iframe");
|
43 |
+
cspAttrSupport = eaglercraftXOpts.enableWebViewCSP && (typeof tempIFrameElement.csp === "string");
|
44 |
+
return (typeof tempIFrameElement.allow === "string") && (typeof tempIFrameElement.sandbox === "object");
|
45 |
+
}
|
46 |
+
};
|
47 |
+
var supported = false;
|
48 |
+
try {
|
49 |
+
supported = checkSupport();
|
50 |
+
}catch(ex) {
|
51 |
+
supported = false;
|
52 |
+
}
|
53 |
+
console.log("CSP attribute support detected as " + cspAttrSupport);
|
54 |
+
if(!supported) {
|
55 |
+
console.error("Required IFrame safety features are not supported!");
|
56 |
+
window.addEventListener("load", function() {
|
57 |
+
document.getElementById("view_loading").style.display = "none";
|
58 |
+
document.getElementById("view_safety_error").style.display = "block";
|
59 |
+
});
|
60 |
+
return;
|
61 |
+
}
|
62 |
+
var websocketInstance = null;
|
63 |
+
var hasOpened = false;
|
64 |
+
var webviewOptions = null;
|
65 |
+
var webviewResetSerial = 0;
|
66 |
+
var hasErrored = false;
|
67 |
+
var hasRegisteredOnMsgHandler = false;
|
68 |
+
var currentMessageHandler = null;
|
69 |
+
var currentIFrame = null;
|
70 |
+
var currentMessageChannelName = null;
|
71 |
+
var elements = {};
|
72 |
+
var loadElements = function() {
|
73 |
+
var jsel = document.getElementsByClassName("__jsel");
|
74 |
+
for(var i = 0; i < jsel.length; ++i) {
|
75 |
+
var el = jsel[i];
|
76 |
+
if(el.id.length > 0) {
|
77 |
+
elements[el.id] = el;
|
78 |
+
}
|
79 |
+
}
|
80 |
+
};
|
81 |
+
function loadEagtekIcon() {
|
82 |
+
var faviconSrc = document.getElementById("vigg").href;
|
83 |
+
var imgElements = document.getElementsByClassName("eagtek_icon");
|
84 |
+
for(var i = 0; i < imgElements.length; ++i) {
|
85 |
+
imgElements[i].src = faviconSrc;
|
86 |
+
}
|
87 |
+
}
|
88 |
+
function setupElementListeners() {
|
89 |
+
elements.button_allow.addEventListener("click", function() {
|
90 |
+
if(websocketInstance !== null) {
|
91 |
+
if(elements.chkbox_remember.checked) {
|
92 |
+
websocketInstance.send(JSON.stringify({$:7,perm:"ALLOW"}));
|
93 |
+
}
|
94 |
+
beginShowingDirect();
|
95 |
+
}
|
96 |
+
});
|
97 |
+
elements.button_block.addEventListener("click", function() {
|
98 |
+
if(websocketInstance !== null) {
|
99 |
+
if(elements.chkbox_remember.checked) {
|
100 |
+
websocketInstance.send(JSON.stringify({$:7,perm:"BLOCK"}));
|
101 |
+
}
|
102 |
+
beginShowingContentBlocked();
|
103 |
+
}
|
104 |
+
});
|
105 |
+
elements.button_re_evaluate.addEventListener("click", function() {
|
106 |
+
if(websocketInstance !== null) {
|
107 |
+
websocketInstance.send(JSON.stringify({$:7,perm:"NOT_SET"}));
|
108 |
+
beginShowingEnableJavaScript();
|
109 |
+
}
|
110 |
+
});
|
111 |
+
}
|
112 |
+
window.specialHack = function() {
|
113 |
+
if(websocketInstance !== null) {
|
114 |
+
websocketInstance.send(JSON.stringify({$:7,perm:"NOT_SET"}));
|
115 |
+
}
|
116 |
+
};
|
117 |
+
var handleHandshake = function(pkt) {
|
118 |
+
webviewOptions = {};
|
119 |
+
webviewOptions.contentMode = pkt.contentMode || "BLOB_BASED";
|
120 |
+
webviewOptions.fallbackTitle = pkt.fallbackTitle || "Server Info";
|
121 |
+
document.title = webviewOptions.fallbackTitle + " - Eaglercraft Desktop Runtime";
|
122 |
+
webviewOptions.scriptEnabled = !!pkt.scriptEnabled;
|
123 |
+
webviewOptions.strictCSPEnable = !!pkt.strictCSPEnable || false;
|
124 |
+
webviewOptions.serverMessageAPIEnabled = !!pkt.serverMessageAPIEnabled;
|
125 |
+
webviewOptions.url = pkt.url;
|
126 |
+
webviewOptions.blob = pkt.blob;
|
127 |
+
webviewOptions.hasApprovedJS = pkt.hasApprovedJS || "NOT_SET";
|
128 |
+
if(webviewOptions.scriptEnabled) {
|
129 |
+
if(webviewOptions.hasApprovedJS === "NOT_SET") {
|
130 |
+
beginShowingEnableJavaScript();
|
131 |
+
}else if(webviewOptions.hasApprovedJS === "ALLOW") {
|
132 |
+
beginShowingDirect();
|
133 |
+
}else if(webviewOptions.hasApprovedJS === "BLOCK") {
|
134 |
+
beginShowingContentBlocked();
|
135 |
+
}else {
|
136 |
+
setErrored("Unknown JS permission state: " + webviewOptions.hasApprovedJS);
|
137 |
+
}
|
138 |
+
}else {
|
139 |
+
beginShowingDirect();
|
140 |
+
}
|
141 |
+
};
|
142 |
+
var handleServerError = function(pkt) {
|
143 |
+
console.error("Recieved error from server: " + pkt.msg);
|
144 |
+
setErrored(pkt.msg);
|
145 |
+
};
|
146 |
+
var handleServerWebViewStrMsg = function(pkt) {
|
147 |
+
var w;
|
148 |
+
if(currentMessageChannelName !== null && currentIFrame !== null && (w = currentIFrame.contentWindow) !== null) {
|
149 |
+
w.postMessage({ver:1,channel:currentMessageChannelName,type:"string",data:pkt.msg}, "*");
|
150 |
+
}else {
|
151 |
+
console.error("Server tried to send the WebView a message, but the message channel is not open!");
|
152 |
+
}
|
153 |
+
};
|
154 |
+
var handleServerWebViewBinMsg = function(arr) {
|
155 |
+
var w;
|
156 |
+
if(currentMessageChannelName !== null && currentIFrame !== null && (w = currentIFrame.contentWindow) !== null) {
|
157 |
+
w.postMessage({ver:1,channel:currentMessageChannelName,type:"binary",data:arr}, "*");
|
158 |
+
}else {
|
159 |
+
console.error("Server tried to send the WebView a message, but the message channel is not open!");
|
160 |
+
}
|
161 |
+
};
|
162 |
+
var hideAllViews = function() {
|
163 |
+
if(currentIFrame !== null) {
|
164 |
+
++webviewResetSerial;
|
165 |
+
if(currentIFrame.parentNode) currentIFrame.parentNode.removeChild(currentIFrame);
|
166 |
+
currentIFrame = null;
|
167 |
+
}
|
168 |
+
elements.view_loading.style.display = "none";
|
169 |
+
elements.view_iframe.style.display = "none";
|
170 |
+
elements.view_allow_javascript.style.display = "none";
|
171 |
+
elements.view_javascript_blocked.style.display = "none";
|
172 |
+
elements.view_safety_error.style.display = "none";
|
173 |
+
};
|
174 |
+
var setErrored = function(str) {
|
175 |
+
if(hasErrored) return;
|
176 |
+
hasErrored = true;
|
177 |
+
hideAllViews();
|
178 |
+
elements.loading_text.style.color = "#CC0000";
|
179 |
+
elements.loading_text.innerText = str;
|
180 |
+
elements.view_loading.style.display = "block";
|
181 |
+
if(websocketInstance !== null) {
|
182 |
+
websocketInstance.close();
|
183 |
+
websocketInstance = null;
|
184 |
+
}
|
185 |
+
};
|
186 |
+
var registerMessageHandler = function() {
|
187 |
+
if(!hasRegisteredOnMsgHandler) {
|
188 |
+
hasRegisteredOnMsgHandler = true;
|
189 |
+
window.addEventListener("message", function(evt) {
|
190 |
+
if(currentIFrame !== null && currentMessageHandler !== null && evt.source === currentIFrame.contentWindow) {
|
191 |
+
currentMessageHandler(evt);
|
192 |
+
}
|
193 |
+
});
|
194 |
+
}
|
195 |
+
};
|
196 |
+
var beginShowingDirect = function() {
|
197 |
+
if(hasErrored) return;
|
198 |
+
hideAllViews();
|
199 |
+
if(!eaglercraftXOpts.forceWebViewSupport) {
|
200 |
+
try {
|
201 |
+
currentIFrame = document.createElement("iframe");
|
202 |
+
currentIFrame.allow = "";
|
203 |
+
if(currentIFrame.allow != "") throw "Failed to set allow to \"\"";
|
204 |
+
currentIFrame.referrerPolicy = "strict-origin";
|
205 |
+
var requiredSandboxTokens = [ "allow-downloads" ];
|
206 |
+
if(webviewOptions.scriptEnabled) {
|
207 |
+
requiredSandboxTokens.push("allow-scripts");
|
208 |
+
requiredSandboxTokens.push("allow-pointer-lock");
|
209 |
+
}
|
210 |
+
currentIFrame.sandbox = requiredSandboxTokens.join(" ");
|
211 |
+
for(var i = 0; i < requiredSandboxTokens.length; ++i) {
|
212 |
+
if(!currentIFrame.sandbox.contains(requiredSandboxTokens[i])) {
|
213 |
+
throw ("Failed to set sandbox attribute: " + requiredSandboxTokens[i]);
|
214 |
+
}
|
215 |
+
}
|
216 |
+
var sbox = currentIFrame.sandbox;
|
217 |
+
for(var i = 0; i < sbox.length; ++i) {
|
218 |
+
if(!requiredSandboxTokens.includes(sbox.item(i))) {
|
219 |
+
throw ("Unknown sandbox attribute detected: " + sbox.item(i));
|
220 |
+
}
|
221 |
+
}
|
222 |
+
}catch(ex) {
|
223 |
+
if(typeof ex === "string") {
|
224 |
+
console.error("Caught safety error: " + ex);
|
225 |
+
beginShowingSafetyError();
|
226 |
+
}else {webviewOptions
|
227 |
+
console.error("Fatal error while creating iframe!");
|
228 |
+
console.error(ex);
|
229 |
+
setErrored("Fatal error while creating iframe!");
|
230 |
+
}
|
231 |
+
return;
|
232 |
+
}
|
233 |
+
}else {
|
234 |
+
currentIFrame = document.createElement("iframe");
|
235 |
+
try {
|
236 |
+
currentIFrame.allow = "";
|
237 |
+
}catch(ex) {
|
238 |
+
}
|
239 |
+
try {
|
240 |
+
currentIFrame.referrerPolicy = "strict-origin";
|
241 |
+
}catch(ex) {
|
242 |
+
}
|
243 |
+
try {
|
244 |
+
var sandboxTokens = [ "allow-downloads", "allow-same-origin" ];
|
245 |
+
if(webviewOptions.scriptEnabled) {
|
246 |
+
sandboxTokens.push("allow-scripts");
|
247 |
+
sandboxTokens.push("allow-pointer-lock");
|
248 |
+
}
|
249 |
+
currentIFrame.sandbox = sandboxTokens.join(" ");
|
250 |
+
}catch(ex) {
|
251 |
+
}
|
252 |
+
}
|
253 |
+
currentIFrame.credentialless = true;
|
254 |
+
currentIFrame.loading = "lazy";
|
255 |
+
var cspWarn = false;
|
256 |
+
if(webviewOptions.contentMode === "BLOB_BASED") {
|
257 |
+
if(cspAttrSupport && eaglercraftXOpts.enableWebViewCSP) {
|
258 |
+
if(typeof currentIFrame.csp === "string") {
|
259 |
+
var csp = "default-src 'none';";
|
260 |
+
var protos = (webviewOptions.strictCSPEnable ? "" : " http: https:");
|
261 |
+
if(webviewOptions.scriptEnabled) {
|
262 |
+
csp += (" script-src 'unsafe-eval' 'unsafe-inline' data: blob:" + protos + ";");
|
263 |
+
csp += (" style-src 'unsafe-eval' 'unsafe-inline' data: blob:" + protos + ";");
|
264 |
+
csp += (" img-src data: blob:" + protos + ";");
|
265 |
+
csp += (" font-src data: blob:" + protos + ";");
|
266 |
+
csp += (" child-src data: blob:" + protos + ";");
|
267 |
+
csp += (" frame-src data: blob:;");
|
268 |
+
csp += (" media-src data: mediastream: blob:" + protos + ";");
|
269 |
+
csp += (" connect-src data: blob:" + protos + ";");
|
270 |
+
csp += (" worker-src data: blob:" + protos + ";");
|
271 |
+
}else {
|
272 |
+
csp += (" style-src data: 'unsafe-inline'" + protos + ";");
|
273 |
+
csp += (" img-src data:" + protos + ";");
|
274 |
+
csp += (" font-src data:" + protos + ";");
|
275 |
+
csp += (" media-src data:" + protos + ";");
|
276 |
+
}
|
277 |
+
currentIFrame.csp = csp;
|
278 |
+
}else {
|
279 |
+
console.error("This browser does not support CSP attribute on iframes! (try Chrome)");
|
280 |
+
cspWarn = true;
|
281 |
+
}
|
282 |
+
}else {
|
283 |
+
cspWarn = true;
|
284 |
+
}
|
285 |
+
if(cspWarn && webviewOptions.strictCSPEnable) {
|
286 |
+
console.error("Strict CSP was requested for this webview, but that feature is not available!");
|
287 |
+
}
|
288 |
+
}else {
|
289 |
+
cspWarn = true;
|
290 |
+
}
|
291 |
+
currentIFrame.style.border = "none";
|
292 |
+
currentIFrame.style.backgroundColor = "white";
|
293 |
+
currentIFrame.style.width = "100%";
|
294 |
+
currentIFrame.style.height = "100%";
|
295 |
+
elements.view_iframe.appendChild(currentIFrame);
|
296 |
+
elements.view_iframe.style.display = "block";
|
297 |
+
if(webviewOptions.contentMode === "BLOB_BASED") {
|
298 |
+
currentIFrame.srcdoc = webviewOptions.blob;
|
299 |
+
}else {
|
300 |
+
currentIFrame.src = webviewOptions.url;
|
301 |
+
}
|
302 |
+
currentIFrame.focus();
|
303 |
+
if(webviewOptions.scriptEnabled && webviewOptions.serverMessageAPIEnabled) {
|
304 |
+
var resetSer = webviewResetSerial;
|
305 |
+
var curIFrame = currentIFrame;
|
306 |
+
registerMessageHandler();
|
307 |
+
currentMessageHandler = function(evt) {
|
308 |
+
if(resetSer === webviewResetSerial && curIFrame === currentIFrame) {
|
309 |
+
handleMessageRawFromFrame(evt.data);
|
310 |
+
}
|
311 |
+
};
|
312 |
+
}
|
313 |
+
};
|
314 |
+
var handleMessageRawFromFrame = function(obj) {
|
315 |
+
if(hasErrored) return;
|
316 |
+
if((typeof obj === "object") && (obj.ver === 1) && ((typeof obj.channel === "string") && obj.channel.length > 0)) {
|
317 |
+
if(typeof obj.open === "boolean") {
|
318 |
+
sendMessageEnToServer(obj.open, obj.channel);
|
319 |
+
return;
|
320 |
+
}else if(typeof obj.data === "string") {
|
321 |
+
sendMessageToServerStr(obj.channel, obj.data);
|
322 |
+
return;
|
323 |
+
}else if(obj.data instanceof ArrayBuffer) {
|
324 |
+
sendMessageToServerBin(obj.channel, obj.data);
|
325 |
+
return;
|
326 |
+
}
|
327 |
+
}
|
328 |
+
console.error("WebView sent an invalid message!");
|
329 |
+
};
|
330 |
+
var sendMessageEnToServer = function(messageChannelOpen, channelName) {
|
331 |
+
if(channelName.length > 255) {
|
332 |
+
console.error("WebView tried to " + (messageChannelOpen ? "open" : "close") + " a channel, but channel name is too long, max is 255 characters!");
|
333 |
+
return;
|
334 |
+
}
|
335 |
+
if(messageChannelOpen && currentMessageChannelName !== null) {
|
336 |
+
console.error("WebView tried to open channel, but a channel is already open!");
|
337 |
+
sendMessageEnToServer(false, currentMessageChannelName);
|
338 |
+
}
|
339 |
+
if(!messageChannelOpen && currentMessageChannelName !== null && currentMessageChannelName === channelName) {
|
340 |
+
console.error("WebView tried to close the wrong channel!");
|
341 |
+
}
|
342 |
+
if(!messageChannelOpen && currentMessageChannelName === null) {
|
343 |
+
console.error("WebView tried to close channel, but the channel is not open!");
|
344 |
+
return;
|
345 |
+
}
|
346 |
+
if(websocketInstance !== null) {
|
347 |
+
if(messageChannelOpen) {
|
348 |
+
websocketInstance.send(JSON.stringify({$:3,channel:channelName}));
|
349 |
+
console.log("WebView opened message channel to server: \"" + channelName + "\"");
|
350 |
+
currentMessageChannelName = channelName;
|
351 |
+
}else {
|
352 |
+
websocketInstance.send(JSON.stringify({$:4}));
|
353 |
+
console.log("WebView closed message channel to server: \"" + currentMessageChannelName + "\"");
|
354 |
+
currentMessageChannelName = null;
|
355 |
+
}
|
356 |
+
}else {
|
357 |
+
console.error("WebView tried to send a message, but no websocket is open!");
|
358 |
+
}
|
359 |
+
};
|
360 |
+
var sendMessageToServerStr = function(channelName, msg) {
|
361 |
+
if(channelName.length > 255) {
|
362 |
+
console.error("WebView tried to send a message packet, but channel name is too long, max is 255 characters!");
|
363 |
+
return;
|
364 |
+
}
|
365 |
+
if(channelName !== currentMessageChannelName) {
|
366 |
+
console.error("WebView tried to send a message packet, but the channel is not open!");
|
367 |
+
return;
|
368 |
+
}
|
369 |
+
if(websocketInstance !== null) {
|
370 |
+
websocketInstance.send(JSON.stringify({$:5,msg:msg}));
|
371 |
+
}else {
|
372 |
+
console.error("WebView tried to send a message, but no callback for sending packets is set!");
|
373 |
+
}
|
374 |
+
};
|
375 |
+
var sendMessageToServerBin = function(channelName, msg) {
|
376 |
+
if(channelName.length > 255) {
|
377 |
+
console.error("WebView tried to send a message packet, but channel name is too long, max is 255 characters!");
|
378 |
+
return;
|
379 |
+
}
|
380 |
+
if(channelName !== currentMessageChannelName) {
|
381 |
+
console.error("WebView tried to send a message packet, but the channel is not open!");
|
382 |
+
return;
|
383 |
+
}
|
384 |
+
if(websocketInstance !== null) {
|
385 |
+
websocketInstance.send(msg);
|
386 |
+
}else {
|
387 |
+
console.error("WebView tried to send a message, but no callback for sending packets is set!");
|
388 |
+
}
|
389 |
+
};
|
390 |
+
var beginShowingEnableJavaScript = function() {
|
391 |
+
if(hasErrored) return;
|
392 |
+
hideAllViews();
|
393 |
+
if(webviewOptions.contentMode !== "BLOB_BASED") {
|
394 |
+
elements.strict_csp_value.innerText = "Impossible";
|
395 |
+
elements.strict_csp_value.style.color = "red";
|
396 |
+
}else if(!cspAttrSupport || !eaglercraftXOpts.enableWebViewCSP) {
|
397 |
+
elements.strict_csp_value.innerText = "Unsupported";
|
398 |
+
elements.strict_csp_value.style.color = "red";
|
399 |
+
}else if(webviewOptions.strictCSPEnable) {
|
400 |
+
elements.strict_csp_value.innerText = "Enabled";
|
401 |
+
elements.strict_csp_value.style.color = "green";
|
402 |
+
}else {
|
403 |
+
elements.strict_csp_value.innerText = "Disabled";
|
404 |
+
elements.strict_csp_value.style.color = "red";
|
405 |
+
}
|
406 |
+
if(webviewOptions.serverMessageAPIEnabled) {
|
407 |
+
elements.message_api_value.innerText = "Enabled";
|
408 |
+
elements.message_api_value.style.color = "red";
|
409 |
+
}else {
|
410 |
+
elements.message_api_value.innerText = "Disabled";
|
411 |
+
elements.message_api_value.style.color = "green";
|
412 |
+
}
|
413 |
+
elements.view_allow_javascript.style.display = "block";
|
414 |
+
};
|
415 |
+
var beginShowingContentBlocked = function() {
|
416 |
+
if(hasErrored) return;
|
417 |
+
hideAllViews();
|
418 |
+
elements.view_javascript_blocked.style.display = "block";
|
419 |
+
};
|
420 |
+
var beginShowingSafetyError = function() {
|
421 |
+
if(hasErrored) return;
|
422 |
+
hasErrored = true;
|
423 |
+
hideAllViews();
|
424 |
+
elements.view_safety_error.style.display = "block";
|
425 |
+
};
|
426 |
+
window.addEventListener("load", function() {
|
427 |
+
loadElements();
|
428 |
+
loadEagtekIcon();
|
429 |
+
setupElementListeners();
|
430 |
+
websocketInstance = new WebSocket(webSocketURI);
|
431 |
+
websocketInstance.binaryType = "arraybuffer";
|
432 |
+
websocketInstance.addEventListener("open", function(evt) {
|
433 |
+
console.log("Connection to server opened");
|
434 |
+
hasOpened = true;
|
435 |
+
websocketInstance.send(JSON.stringify({$:0,cspSupport:cspAttrSupport}));
|
436 |
+
});
|
437 |
+
websocketInstance.addEventListener("message", function(evt) {
|
438 |
+
try {
|
439 |
+
if(typeof evt.data === "string") {
|
440 |
+
var pkt = JSON.parse(evt.data);
|
441 |
+
if(typeof pkt.$ !== "number") {
|
442 |
+
throw "Packet type is invalid";
|
443 |
+
}
|
444 |
+
if(webviewOptions === null) {
|
445 |
+
if(pkt.$ === 1) {
|
446 |
+
handleHandshake(pkt);
|
447 |
+
}else if(pkt.$ === 2) {
|
448 |
+
handleServerError(pkt);
|
449 |
+
}else {
|
450 |
+
throw "Unknown packet type " + pkt.$ + " for state handshake!"
|
451 |
+
}
|
452 |
+
}else {
|
453 |
+
if(pkt.$ === 2) {
|
454 |
+
handleServerError(pkt);
|
455 |
+
}else if(pkt.$ === 6) {
|
456 |
+
handleServerWebViewStrMsg(pkt);
|
457 |
+
}else {
|
458 |
+
throw "Unknown packet type " + pkt.$ + " for state open!"
|
459 |
+
}
|
460 |
+
}
|
461 |
+
}else {
|
462 |
+
handleServerWebViewBinMsg(evt.data);
|
463 |
+
}
|
464 |
+
}catch(ex) {
|
465 |
+
console.error("Caught exception processing message from server!");
|
466 |
+
console.error(ex);
|
467 |
+
}
|
468 |
+
});
|
469 |
+
websocketInstance.addEventListener("close", function(evt) {
|
470 |
+
websocketInstance = null;
|
471 |
+
setErrored("Connection to EaglercraftX client lost!");
|
472 |
+
});
|
473 |
+
websocketInstance.addEventListener("error", function(evt) {
|
474 |
+
console.error("WebSocket error: " + evt);
|
475 |
+
});
|
476 |
+
});
|
477 |
+
})();
|
478 |
+
</script>
|
479 |
+
</head>
|
480 |
+
<body style="margin:0px;width:100%;height:100%;overflow:hidden;font-family:sans-serif;user-select:none;">
|
481 |
+
<div id="view_loading" style="width:100%;height:100%;display:block;" class="__jsel">
|
482 |
+
<div style="padding-top:13vh;">
|
483 |
+
<h2 style="text-align:center;" id="loading_text" class="__jsel">Please Wait...</h2>
|
484 |
+
</div>
|
485 |
+
</div>
|
486 |
+
<div id="view_iframe" style="width:100%;height:100%;display:none;" class="__jsel">
|
487 |
+
</div>
|
488 |
+
<div id="view_allow_javascript" style="width:100%;height:100%;display:none;" class="__jsel">
|
489 |
+
<div style="padding-top:13vh;">
|
490 |
+
<div style="margin:auto;max-width:450px;border:6px double black;text-align:center;padding:20px;">
|
491 |
+
<h2><img width="32" height="32" style="vertical-align:middle;" class="eagtek_icon"> Allow JavaScript</h2>
|
492 |
+
<p style="font-family:monospace;text-decoration:underline;word-wrap:break-word;" id="target_url"></p>
|
493 |
+
<h4 style="line-height:1.4em;">Strict CSP: <span id="strict_csp_value" class="__jsel"></span> | Message API: <span id="message_api_value" class="__jsel"></span></h4>
|
494 |
+
<p><input id="chkbox_remember" type="checkbox" class="__jsel" checked> Remember my choice</p>
|
495 |
+
<p><button style="font-size:1.5em;" id="button_allow" class="__jsel">Allow</button> <button style="font-size:1.5em;" id="button_block" class="__jsel">Block</button></p>
|
496 |
+
</div>
|
497 |
+
</div>
|
498 |
+
</div>
|
499 |
+
<div id="view_javascript_blocked" style="width:100%;height:100%;display:none;" class="__jsel">
|
500 |
+
<div style="padding-top:13vh;">
|
501 |
+
<h1 style="text-align:center;"><img width="48" height="48" style="vertical-align:middle;" class="eagtek_icon"> Content Blocked</h1>
|
502 |
+
<h4 style="text-align:center;">You chose to block JavaScript execution for this embed</h4>
|
503 |
+
<p style="text-align:center;"><button style="font-size:1.0em;" id="button_re_evaluate" class="__jsel">Re-evaluate</button></p>
|
504 |
+
</div>
|
505 |
+
</div>
|
506 |
+
<div id="view_safety_error" style="width:100%;height:100%;display:none;" class="__jsel">
|
507 |
+
<div style="padding-top:13vh;">
|
508 |
+
<h1 style="text-align:center;"><img width="48" height="48" style="vertical-align:middle;" class="eagtek_icon"> IFrame Safety Error</h1>
|
509 |
+
<h4 style="text-align:center;">The content cannot be displayed safely!</h4>
|
510 |
+
<h4 style="text-align:center;">Check console for more details</h4>
|
511 |
+
</div>
|
512 |
+
</div>
|
513 |
+
</body>
|
514 |
+
</html>
|
desktopRuntime/UnsafeMemcpy.dll
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c455492801571bf52c9541efb89a40e71e4d585d5041363b68fc43e2e423da38
|
3 |
+
size 135168
|
desktopRuntime/UnsafeMemcpy.jar
ADDED
Binary file (5.84 kB). View file
|
|
desktopRuntime/angle_license.txt
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright 2018 The ANGLE Project Authors.
|
2 |
+
All rights reserved.
|
3 |
+
|
4 |
+
Redistribution and use in source and binary forms, with or without
|
5 |
+
modification, are permitted provided that the following conditions
|
6 |
+
are met:
|
7 |
+
|
8 |
+
Redistributions of source code must retain the above copyright
|
9 |
+
notice, this list of conditions and the following disclaimer.
|
10 |
+
|
11 |
+
Redistributions in binary form must reproduce the above
|
12 |
+
copyright notice, this list of conditions and the following
|
13 |
+
disclaimer in the documentation and/or other materials provided
|
14 |
+
with the distribution.
|
15 |
+
|
16 |
+
Neither the name of TransGaming Inc., Google Inc., 3DLabs Inc.
|
17 |
+
Ltd., nor the names of their contributors may be used to endorse
|
18 |
+
or promote products derived from this software without specific
|
19 |
+
prior written permission.
|
20 |
+
|
21 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
22 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
23 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
24 |
+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
25 |
+
COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
26 |
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
27 |
+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
28 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
29 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
30 |
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
31 |
+
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
32 |
+
POSSIBILITY OF SUCH DAMAGE.
|
desktopRuntime/codecjorbis-20101023.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c4b4e50e608763564afa1bde2d25ece9dd715e7c9129540faa1faded4896506
|
3 |
+
size 103871
|
desktopRuntime/codecwav-20101023.jar
ADDED
Binary file (5.62 kB). View file
|
|
desktopRuntime/d3dcompiler_47.dll
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af7b99be1b8770c0e4d18e43b04e81d11bdeb667fa6b07ade7a88f4c5676bf9a
|
3 |
+
size 4916728
|
desktopRuntime/eclipseProject/deps_fix/Java-WebSocket-1.5.1-with-dependencies.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3d9e459ded192e0a9f4696cf24ae310d9f3b0550e52de759c1bdfaf218288dfc
|
3 |
+
size 173621
|
desktopRuntime/eclipseProject/deps_fix/UnsafeMemcpy.jar
ADDED
Binary file (5.84 kB). View file
|
|
desktopRuntime/eclipseProject/deps_fix/codecjorbis-20101023.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6c4b4e50e608763564afa1bde2d25ece9dd715e7c9129540faa1faded4896506
|
3 |
+
size 103871
|
desktopRuntime/eclipseProject/deps_fix/codecwav-20101023.jar
ADDED
Binary file (5.62 kB). View file
|
|
desktopRuntime/eclipseProject/deps_fix/lwjgl-egl.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c8911dc6724538cc14e54c85ff3c6d9c2b7ea64eaa1abddd0fe91d7e7807aa03
|
3 |
+
size 152509
|
desktopRuntime/eclipseProject/deps_fix/lwjgl-glfw.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bedc757fd2b1b255146db26b74b9cbd1fcf5644b89b47b104fa721c741604259
|
3 |
+
size 135546
|
desktopRuntime/eclipseProject/deps_fix/lwjgl-jemalloc.jar
ADDED
Binary file (43.9 kB). View file
|
|
desktopRuntime/eclipseProject/deps_fix/lwjgl-openal.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae0e82767cacf08921f578fba9d84753ddeb00ceada0510a2b4a882be28fbf95
|
3 |
+
size 110586
|
desktopRuntime/eclipseProject/deps_fix/lwjgl-opengles.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a9f291d329d8bb7206985230b850efde516492c43b3871a6d28b82c0b7810d3e
|
3 |
+
size 369765
|
desktopRuntime/eclipseProject/deps_fix/lwjgl.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc9c7b2d48e8396d68895f8902ffa01e46253de44dfe927533ff09457ebfeec4
|
3 |
+
size 785029
|
desktopRuntime/eclipseProject/deps_fix/soundsystem-20120107.jar
ADDED
Binary file (65 kB). View file
|
|
desktopRuntime/eclipseProject/deps_fix/webrtc-java-0.8.0.jar
ADDED
Binary file (96.7 kB). View file
|
|
desktopRuntime/eclipseProject/eaglercraftDebugRuntime.launch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2 |
+
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
3 |
+
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
|
4 |
+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
5 |
+
<listEntry value="/eclipseProject/src_lwjgl_java/net/lax1dude/eaglercraft/v1_8/internal/lwjgl/MainClass.java"/>
|
6 |
+
</listAttribute>
|
7 |
+
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
8 |
+
<listEntry value="1"/>
|
9 |
+
</listAttribute>
|
10 |
+
<mapAttribute key="org.eclipse.debug.core.environmentVariables">
|
11 |
+
<mapEntry key="LD_LIBRARY_PATH" value="${project_loc}/../"/>
|
12 |
+
</mapAttribute>
|
13 |
+
<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
14 |
+
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
15 |
+
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
16 |
+
</listAttribute>
|
17 |
+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
|
18 |
+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
|
19 |
+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>
|
20 |
+
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
|
21 |
+
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="net.lax1dude.eaglercraft.v1_8.internal.lwjgl.MainClass"/>
|
22 |
+
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="eclipseProject"/>
|
23 |
+
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="eclipseProject"/>
|
24 |
+
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Djava.library.path=."/>
|
25 |
+
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${project_loc}/../"/>
|
26 |
+
</launchConfiguration>
|
desktopRuntime/glfw.dll
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:affa7e54eb0dedce4a5721c327c1a16035edbbd039cd402e08107d6d2d55eb1a
|
3 |
+
size 496128
|
desktopRuntime/glfw_license.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright (c) 2002-2006 Marcus Geelnard
|
2 |
+
Copyright (c) 2006-2010 Camilla Berglund <[email protected]>
|
3 |
+
|
4 |
+
This software is provided 'as-is', without any express or implied
|
5 |
+
warranty. In no event will the authors be held liable for any damages
|
6 |
+
arising from the use of this software.
|
7 |
+
|
8 |
+
Permission is granted to anyone to use this software for any purpose,
|
9 |
+
including commercial applications, and to alter it and redistribute it
|
10 |
+
freely, subject to the following restrictions:
|
11 |
+
|
12 |
+
1. The origin of this software must not be misrepresented; you must not
|
13 |
+
claim that you wrote the original software. If you use this software
|
14 |
+
in a product, an acknowledgment in the product documentation would
|
15 |
+
be appreciated but is not required.
|
16 |
+
|
17 |
+
2. Altered source versions must be plainly marked as such, and must not
|
18 |
+
be misrepresented as being the original software.
|
19 |
+
|
20 |
+
3. This notice may not be removed or altered from any source
|
21 |
+
distribution.
|
desktopRuntime/icon16.png
ADDED
![]() |
desktopRuntime/icon32.png
ADDED
![]() |
desktopRuntime/javadoc/lwjgl-egl-javadoc.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7731f572a793f6e37d15237e2dfaf65fa7994e0cc87ab7bc11070d63e9d0c9dc
|
3 |
+
size 639448
|
desktopRuntime/javadoc/lwjgl-glfw-javadoc.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:89ec8b3cb10c0743c8cfba0d1d54855811e71336bd8e2ea3776590cf64b60ed7
|
3 |
+
size 456446
|
desktopRuntime/javadoc/lwjgl-javadoc.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca78aebe07375089f1221d81636b97ac7eaccb7d181e26e5262026888c68f1c3
|
3 |
+
size 2021185
|
desktopRuntime/javadoc/lwjgl-jemalloc-javadoc.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:98c01101453f167b96ea24da63077c1b88ddf448eff8c27abc0c5b0791cdac9c
|
3 |
+
size 178798
|
desktopRuntime/javadoc/lwjgl-openal-javadoc.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b148b0ae02c2302aacfee0bd092ad3c6cdb7164d015ca231f23ff0e5c071c36
|
3 |
+
size 396450
|
desktopRuntime/javadoc/lwjgl-opengles-javadoc.jar
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:62a9117dea956d764019e45c673a10342460399af106ed53a0ad951e8c73dcb1
|
3 |
+
size 1395080
|
desktopRuntime/jemalloc.dll
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9abf0095066ebab37b78968e11370a8078313e48cb5be8eda01f67623c6a6248
|
3 |
+
size 398336
|
desktopRuntime/jemalloc_license.txt
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Unless otherwise specified, files in the jemalloc source distribution are
|
2 |
+
subject to the following license:
|
3 |
+
--------------------------------------------------------------------------------
|
4 |
+
Copyright (C) 2002-2018 Jason Evans <[email protected]>.
|
5 |
+
All rights reserved.
|
6 |
+
Copyright (C) 2007-2012 Mozilla Foundation. All rights reserved.
|
7 |
+
Copyright (C) 2009-2018 Facebook, Inc. All rights reserved.
|
8 |
+
|
9 |
+
Redistribution and use in source and binary forms, with or without
|
10 |
+
modification, are permitted provided that the following conditions are met:
|
11 |
+
1. Redistributions of source code must retain the above copyright notice(s),
|
12 |
+
this list of conditions and the following disclaimer.
|
13 |
+
2. Redistributions in binary form must reproduce the above copyright notice(s),
|
14 |
+
this list of conditions and the following disclaimer in the documentation
|
15 |
+
and/or other materials provided with the distribution.
|
16 |
+
|
17 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY EXPRESS
|
18 |
+
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
19 |
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
20 |
+
EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
|
21 |
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
22 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
23 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24 |
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
25 |
+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
26 |
+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
27 |
+
--------------------------------------------------------------------------------
|