Fix source

This commit is contained in:
PeytonPlayz595 2025-02-09 09:43:51 -08:00
parent 4a3b8b2e59
commit 0fbbc5b04d
3195 changed files with 323427 additions and 0 deletions

2
CompileEPK.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
java -jar "desktopRuntime/CompileEPK.jar" "desktopRuntime/resources" "javascript/assets.epk"

4
CompileJS.bat Normal file
View File

@ -0,0 +1,4 @@
@echo off
title gradlew generateJavascript
call gradlew generateJavascript
pause

4
MakeOfflineDownload.bat Normal file
View File

@ -0,0 +1,4 @@
@echo off
title MakeOfflineDownload
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/Eaglercraft_0.30_Offline_en_US.html" "javascript/Eaglercraft_0.30_Offline_International.html" "javascript/lang"
pause

2
MakeOfflineDownload.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
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/Eaglercraft_0.30_Offline_en_US.html" "javascript/Eaglercraft_0.30_Offline_International.html" "javascript/lang"

75
build.gradle Normal file
View File

@ -0,0 +1,75 @@
import org.teavm.gradle.api.OptimizationLevel
buildscript {
dependencies {
classpath files("src/teavmc-classpath/resources")
}
}
plugins {
id "java"
id "eclipse"
id "org.teavm" version "0.9.2"
}
sourceSets {
main {
java {
srcDirs(
"src/game/java",
"src/main/java",
"src/teavm/java"
)
}
}
eagler {
java {
srcDir 'src/game/java'
srcDir 'src/main/java'
srcDir 'src/lwjgl/java'
}
}
}
repositories {
mavenCentral()
}
dependencies {
teavm(teavm.libs.jso)
teavm(teavm.libs.jsoApis)
compileOnly "org.teavm:teavm-core:0.9.2" // workaround for a few hacks
eaglerImplementation fileTree(dir: './desktopRuntime/eclipseProject/deps_fix/', include: '*.jar')
}
def folder = "javascript"
def name = "classes.js"
teavm.js {
obfuscated = true // Change to "true" for release, used for debugging
sourceMap = true
targetFileName = "../" + name
optimization = OptimizationLevel.AGGRESSIVE // Change to "AGGRESSIVE" for release
outOfProcess = false
fastGlobalAnalysis = false
processMemory = 1024
entryPointName = "main"
mainClass = "net.lax1dude.eaglercraft.internal.teavm.MainClass"
outputDir = file(folder)
properties = [ "java.util.TimeZone.autodetect": "true" ]
debugInformation = false
}
tasks.register('runclient', JavaExec) {
jvmArgs "-Djava.library.path=" + System.getProperty("user.dir") + "/desktopRuntime"
classpath = sourceSets.eagler.compileClasspath
group = "Eaglercraft-0.30"
description = "Runs the client"
classpath sourceSets.eagler.runtimeClasspath
if (System.getProperty("os.name").toLowerCase().contains("mac")) {
jvmArgs '-XstartOnFirstThread'
}
workingDir "./desktopRuntime"
main 'net.lax1dude.eaglercraft.internal.MainClass'
}

Binary file not shown.

Binary file not shown.

BIN
desktopRuntime/OpenAL.dll Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src_main_java"/>
<classpathentry kind="src" path="src_lwjgl_java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="deps_fix/codecjorbis-20101023.jar"/>
<classpathentry kind="lib" path="deps_fix/codecwav-20101023.jar"/>
<classpathentry kind="lib" path="deps_fix/Java-WebSocket-1.5.1-with-dependencies.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-egl.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-glfw.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-jemalloc.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-openal.jar"/>
<classpathentry kind="lib" path="deps_fix/lwjgl-opengles.jar"/>
<classpathentry kind="lib" path="deps_fix/soundsystem-20120107.jar"/>
<classpathentry kind="lib" path="deps_fix/UnsafeMemcpy.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>0.30-classic</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
<linkedResources>
<link>
<name>src_game_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/game/java</locationURI>
</link>
<link>
<name>src_main_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/main/java</locationURI>
</link>
<link>
<name>src_lwjgl_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/lwjgl/java</locationURI>
</link>
<link>
<name>src_teavm_java</name>
<type>2</type>
<locationURI>PARENT-2-PROJECT_LOC../src/teavm/java</locationURI>
</link>
</linkedResources>
</projectDescription>

View File

@ -0,0 +1,12 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=11
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=enabled
org.eclipse.jdt.core.compiler.source=11

Some files were not shown because too many files have changed in this diff Show More