|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2009-2019 jMonkeyEngine
|
|
|
+ * Copyright (c) 2009-2021 jMonkeyEngine
|
|
|
* All rights reserved.
|
|
|
*
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
@@ -50,19 +50,19 @@ import java.util.logging.Logger;
|
|
|
* using {@link #loadNativeLibrary(java.lang.String, boolean) }.
|
|
|
* <br>
|
|
|
* Example:<br>
|
|
|
- * <code><pre>
|
|
|
+ * <pre>
|
|
|
* NativeLibraryLoader.registerNativeLibrary("mystuff", Platform.Windows32, "native/windows/mystuff.dll");
|
|
|
* NativeLibraryLoader.registerNativeLibrary("mystuff", Platform.Windows64, "native/windows/mystuff64.dll");
|
|
|
* NativeLibraryLoader.registerNativeLibrary("mystuff", Platform.Linux32, "native/linux/libmystuff.so");
|
|
|
* NativeLibraryLoader.registerNativeLibrary("mystuff", Platform.Linux64, "native/linux/libmystuff64.so");
|
|
|
* NativeLibraryLoader.registerNativeLibrary("mystuff", Platform.MacOSX32, "native/macosx/libmystuff.jnilib");
|
|
|
* NativeLibraryLoader.registerNativeLibrary("mystuff", Platform.MacOSX64, "native/macosx/libmystuff.jnilib");
|
|
|
- * </pre></code>
|
|
|
+ * </pre>
|
|
|
* <br>
|
|
|
* This will register the library. Load it via: <br>
|
|
|
- * <code><pre>
|
|
|
+ * <pre>
|
|
|
* NativeLibraryLoader.loadNativeLibrary("mystuff", true);
|
|
|
- * </pre></code>
|
|
|
+ * </pre>
|
|
|
* It will load the right library automatically based on the platform.
|
|
|
*
|
|
|
* @author Kirill Vainer
|
|
@@ -246,6 +246,7 @@ public final class NativeLibraryLoader {
|
|
|
* called <code>natives_<hash></code> where <hash>
|
|
|
* is computed automatically as the XOR of the classpath hash code
|
|
|
* and the last modified date of this class.
|
|
|
+ * </ul>
|
|
|
*
|
|
|
* @return Path where natives will be extracted to.
|
|
|
*/
|