Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

support the current libflashplayer.so

  • Loading branch information...
commit d96703cffeb6f6ccadd0116445e20190f701edd1 1 parent f27b18a
Geoff Norton authored
Showing with 9 additions and 3 deletions.
  1. +4 −0 food/classes.c
  2. +5 −3 food/myjni.c
View
4 food/classes.c
@@ -260,6 +260,10 @@ jobject loadClass(jobject obj, va_list v) {
dict rcr = named_dict("RawConfigResources");
s(rcr, "GetAssetFileDescriptor[(Landroid/content/Context;Ljava/lang/String;)Landroid/content/res/AssetFileDescriptor;]", make_a(getAssetFileDescriptor));
return new_jobject(rcr);
+ } else if(CFEqual(className, CFSTR("com/adobe/flashplayer/FlashPaintSurface"))) {
+ dict fps = (dict) g(classes, "com/adobe/flashplayer/FlashPaintSurface");
+ _assert (fps != NULL);
+ return new_jobject(fps);
}
notice("loadClass: unknown class");
CFShow(className);
View
8 food/myjni.c
@@ -197,9 +197,11 @@ void *JNI_OnLoad_ptr;
void do_jni_onload() {
extern void do_jni_onload(void *);
- notice("calling JNI_OnLoad...");
- jint version = ((jint (*)(JavaVM *, void *)) JNI_OnLoad_ptr)(&vm, NULL);
- notice("do_jni_onload: version = %x", (unsigned int) version);
+ if (JNI_OnLoad_ptr != NULL) {
+ notice("calling JNI_OnLoad...");
+ jint version = ((jint (*)(JavaVM *, void *)) JNI_OnLoad_ptr)(&vm, NULL);
+ notice("do_jni_onload: version = %x", (unsigned int) version);
+ }
}
Please sign in to comment.
Something went wrong with that request. Please try again.