Mercurial > vba-clojure
diff java/src/com/aurellem/gb/Gb.java @ 48:75349da4c344
clojure hello world works
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Wed, 07 Mar 2012 00:36:53 -0600 |
parents | 9d3769896d66 |
children | e643f55bc886 |
line wrap: on
line diff
1.1 --- a/java/src/com/aurellem/gb/Gb.java Wed Mar 07 00:13:50 2012 -0600 1.2 +++ b/java/src/com/aurellem/gb/Gb.java Wed Mar 07 00:36:53 2012 -0600 1.3 @@ -12,12 +12,17 @@ 1.4 /** 1.5 * Hello World! This is just to test the native interface. 1.6 */ 1.7 - public native void sayHello(); 1.8 + public static native void sayHello(); 1.9 1.10 /** 1.11 * Run the emulator on a given rom 1.12 * @param rom - the name of the rom. 1.13 */ 1.14 - public native void startEmulator(String rom); 1.15 + public static native void startEmulator(String rom); 1.16 + 1.17 + 1.18 + public static void loadVBA(){ 1.19 + System.loadLibrary("vba"); 1.20 + } 1.21 1.22 }