comparison src/clojure/clojure.cpp @ 59:3ce48d803e74

added functions to get rom/ram sizes
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 17:40:00 -0600
parents ba4fdfb722ed
children ef59aee6d715
comparison
equal deleted inserted replaced
58:431ee7ee12de 59:3ce48d803e74
99 ((char*) env->GetDirectBufferAddress(buffer)); 99 ((char*) env->GetDirectBufferAddress(buffer));
100 gbReadMemSaveState(buffer_address, size); 100 gbReadMemSaveState(buffer_address, size);
101 } 101 }
102 102
103 103
104 /*
105 * Class: com_aurellem_gb_Gb
106 * Method: getROMSize
107 * Signature: ()I
108 */
109 JNIEXPORT jint JNICALL Java_com_aurellem_gb_Gb_getROMSize
110 (JNIEnv *env, jclass clazz){
111 return getRomSize();
112 }
113
114 /*
115 * Class: com_aurellem_gb_Gb
116 * Method: getRAMSize
117 * Signature: ()I
118 */
119 JNIEXPORT jint JNICALL Java_com_aurellem_gb_Gb_getRAMSize
120 (JNIEnv *env, jclass clazz){
121 return getRamSize();
122 }
104 123
105 124
106 125
107 126
108 127
128
129