Support ARM natives, rewrite native handling and misc cleanup. (#554)

* Rewrite natives handling, upgrade LWJGL on ARM machines.

* Remove old natives override hack, should now always be done via gradle.

* Use "idea" everywhere

* Add server specific libraries onto their own classpath. Includes misc code cleanup.

* Start on writing the excluded server libs.

* Gradle deprecation fixes, and misc cleanup

* Add support mod.

* Make native support mod none transitive.

* Update gradle.
This commit is contained in:
modmuss50
2021-12-17 15:37:00 +00:00
committed by GitHub
parent 4ace257c37
commit 5a16440c1e
53 changed files with 905 additions and 470 deletions

View File

@@ -25,18 +25,12 @@
package net.fabricmc.loom.util;
import java.io.File;
import java.io.IOException;
import java.util.zip.ZipFile;
public final class ModUtils {
private ModUtils() {
}
public static boolean isMod(File input) {
try (ZipFile zipFile = new ZipFile(input)) {
return zipFile.getEntry("fabric.mod.json") != null;
} catch (IOException e) {
return false;
}
return ZipUtils.contains(input.toPath(), "fabric.mod.json");
}
}