mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 08:44:50 +00:00
Match LWJGL natives jars by file name in GpuLibraryTest
This commit is contained in:
1 parent
30c7492679
commit
1d23587b90
1 file changed
+2
-2
@@ -19,7 +19,7 @@ public class GpuLibraryTest {
|
||||
public void missingNativeLibrariesUseSoftwareEvenWhenBindingClassesExist() throws Exception {
|
||||
List<URL> classpath = new ArrayList<>();
|
||||
for (String entry : System.getProperty("java.class.path").split(Pattern.quote(File.pathSeparator))) {
|
||||
if (!entry.contains("natives-")) {
|
||||
if (!new File(entry).getName().contains("-natives-")) {
|
||||
classpath.add(new File(entry).toURI().toURL());
|
||||
}
|
||||
}
|
||||
@@ -27,7 +27,7 @@ public class GpuLibraryTest {
|
||||
while (loader != null) {
|
||||
if (loader instanceof URLClassLoader urls) {
|
||||
for (URL url : urls.getURLs()) {
|
||||
if (!url.getPath().contains("natives-")) {
|
||||
if (!new File(url.getPath()).getName().contains("-natives-")) {
|
||||
classpath.add(url);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user