1 /* ---------------------------------------------------------------------------
3 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
4 // ---------------------------------------------------------------------------
5 // SquirrelJME is under the Mozilla Public License Version 2.0.
6 // See license.mkd for licensing and copyright information.
7 // --------------------------------------------------------------------------*/
14 #include "cc_squirreljme_emulator_NativeBinding.h"
15 #include "squirreljme.h"
17 JNIEXPORT jint JNICALL
JNI_OnLoad(JavaVM
* vm
, void* reserved
)
21 // Used to indicate that something might be happened
22 fprintf(stderr
, "JNI Sub-Level: Loading Library...\n");
25 return JNI_VERSION_1_6
;
28 JNIEXPORT jint JNICALL Java_cc_squirreljme_emulator_NativeBinding__1_1bindMethods
29 (JNIEnv
* env
, jclass classy
)
34 fprintf(stderr
, "JNI Sub-Level: Binding Methods...\n");
36 rv
|= mleDebugInit(env
, classy
);
37 rv
|= mleFormInit(env
, classy
);
38 rv
|= mleJarInit(env
, classy
);
39 rv
|= mleMathInit(env
, classy
);
40 rv
|= mleMidiInit(env
, classy
);
41 rv
|= mleNativeArchiveInit(env
, classy
);
42 rv
|= mleObjectInit(env
, classy
);
43 rv
|= mlePencilInit(env
, classy
);
44 rv
|= mleReflectionInit(env
, classy
);
45 rv
|= mleRuntimeInit(env
, classy
);
46 rv
|= mleTaskInit(env
, classy
);
47 rv
|= mleTerminalInit(env
, classy
);
48 rv
|= mleTypeInit(env
, classy
);
49 rv
|= mleThreadInit(env
, classy
);
52 fprintf(stderr
, "JNI Sub-Level: Methods are now bound!\n");