Not separate LWJGL2 and 3 classpath

This commit is contained in:
khanhduytran0 2020-09-27 18:40:08 +07:00
parent cf06c919fd
commit e99c608434

View File

@ -332,21 +332,21 @@ public final class Tools
String[] classpath = generateLibClasspath(info); String[] classpath = generateLibClasspath(info);
// Debug: LWJGL 3 override // Debug: LWJGL 3 override
File lwjgl2Folder = new File(Tools.MAIN_PATH, "lwjgl2"); // File lwjgl2Folder = new File(Tools.MAIN_PATH, "lwjgl2");
File lwjgl3Folder = new File(Tools.MAIN_PATH, "lwjgl3"); File lwjgl3Folder = new File(Tools.MAIN_PATH, "lwjgl3");
if (info.arguments != null && lwjgl3Folder.exists()) { if (/* info.arguments != null && */ lwjgl3Folder.exists()) {
for (File file: lwjgl3Folder.listFiles()) { for (File file: lwjgl3Folder.listFiles()) {
if (file.getName().endsWith(".jar")) { if (file.getName().endsWith(".jar")) {
libStr.append(file.getAbsolutePath() + ":"); libStr.append(file.getAbsolutePath() + ":");
} }
} }
} else if (lwjgl2Folder.exists()) { } /* else if (lwjgl2Folder.exists()) {
for (File file: lwjgl2Folder.listFiles()) { for (File file: lwjgl2Folder.listFiles()) {
if (file.getName().endsWith(".jar")) { if (file.getName().endsWith(".jar")) {
libStr.append(file.getAbsolutePath() + ":"); libStr.append(file.getAbsolutePath() + ":");
} }
} }
} } */
if (isClientFirst) { if (isClientFirst) {
libStr.append(getPatchedFile(version)); libStr.append(getPatchedFile(version));