1
0
mirror of https://github.com/NekoX-Dev/NekoX.git synced 2024-12-03 13:40:11 +01:00
NekoX/TMessagesProj/jni/NativeLoader.cpp
2020-09-30 16:48:47 +03:00

20 lines
677 B
C++

#include <jni.h>
/*static google_breakpad::ExceptionHandler *exceptionHandler;
bool callback(const google_breakpad::MinidumpDescriptor &descriptor, void *context, bool succeeded) {
printf("dump path: %s\n", descriptor.path());
return succeeded;
}*/
extern "C" {
JNIEXPORT void Java_org_telegram_messenger_NativeLoader_init(JNIEnv* env, jobject obj, jstring filepath, jboolean enable) {
return;
/*if (enable) {
const char *path = env->GetStringUTFChars(filepath, 0);
google_breakpad::MinidumpDescriptor descriptor(path);
exceptionHandler = new google_breakpad::ExceptionHandler(descriptor, NULL, callback, NULL, true, -1);
}*/
}
}