Skip to content

Commit

Permalink
调整[启动]: 检查Native目录是否存在jsph
Browse files Browse the repository at this point in the history
  • Loading branch information
Vera-Firefly committed Oct 17, 2024
1 parent f756ed5 commit fa15a16
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,11 @@ private static void checkAndUsedJSPH(final Runtime runtime) {
File[] files = dir.listFiles((dir1, name) -> name.startsWith(jsphName));
if (files != null && files.length > 0) {
String libName = NATIVE_LIB_DIR + "/" + jsphName + ".so";
Os.setenv("JSP", libName, true);
try {
Os.setenv("JSP", libName, true);
} catch (Exception e) {
System.err.println("Error setting environment variable: " + e.getMessage());
}
} else {
System.out.println("Native: Library " + jsphName + ".so not found, some mod cannot used");
}
Expand Down

0 comments on commit fa15a16

Please sign in to comment.