1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00
NekoX/TMessagesProj/jni/NativeLoader.cpp

22 lines
837 B
C++
Raw Normal View History

2015-09-24 20:52:02 +00:00
#include <jni.h>
#include <stdio.h>
#include "breakpad/client/linux/handler/exception_handler.h"
#include "breakpad/client/linux/handler/minidump_descriptor.h"
/*static google_breakpad::ExceptionHandler *exceptionHandler;
2015-09-24 20:52:02 +00:00
bool callback(const google_breakpad::MinidumpDescriptor &descriptor, void *context, bool succeeded) {
printf("dump path: %s\n", descriptor.path());
return succeeded;
}*/
2015-09-24 20:52:02 +00:00
extern "C" {
void Java_org_telegram_messenger_NativeLoader_init(JNIEnv* env, jobject obj, jstring filepath, bool enable) {
2015-10-29 17:10:07 +00:00
return;
/*if (enable) {
2015-09-24 20:52:02 +00:00
const char *path = env->GetStringUTFChars(filepath, 0);
google_breakpad::MinidumpDescriptor descriptor(path);
exceptionHandler = new google_breakpad::ExceptionHandler(descriptor, NULL, callback, NULL, true, -1);
}*/
2015-09-24 20:52:02 +00:00
}
}