mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
JNI_VERSION restructure
This commit is contained in:
parent
88d377ca74
commit
1e806b9188
2 changed files with 10 additions and 7 deletions
|
|
@ -194,6 +194,9 @@ public class FMOD {
|
|||
|
||||
/** Version of FMOD */
|
||||
public static final String VERSION = "1.0beta3";
|
||||
|
||||
/** Current version of the JNI library */
|
||||
static final int JNI_VERSION = 1;
|
||||
|
||||
static {
|
||||
initialize();
|
||||
|
|
@ -211,10 +214,10 @@ public class FMOD {
|
|||
loadLibrary(JNI_LIBRARY_NAME);
|
||||
|
||||
// check for mismatch
|
||||
String nativeVersion = getNativeLibraryVersion();
|
||||
if (!nativeVersion.equals(VERSION)) {
|
||||
int nativeVersion = getNativeLibraryVersion();
|
||||
if (nativeVersion != JNI_VERSION) {
|
||||
throw new LinkageError(
|
||||
"Version mismatch: jar version is '" + VERSION +
|
||||
"Version mismatch: jar version is '" + JNI_VERSION +
|
||||
"', native libary version is '" + nativeVersion + "'");
|
||||
}
|
||||
|
||||
|
|
@ -242,7 +245,7 @@ public class FMOD {
|
|||
/**
|
||||
* Return the version of the native library
|
||||
*/
|
||||
private static native String getNativeLibraryVersion();
|
||||
private static native int getNativeLibraryVersion();
|
||||
|
||||
/**
|
||||
* @return true if AL has been created
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue