mirror of
https://github.com/DrKLO/Telegram.git
synced 2024-12-22 22:45:18 +01:00
2114024ab1
Thanks to: https://github.com/DrKLO/Telegram/pull/1374 https://github.com/DrKLO/Telegram/pull/1383
22 lines
No EOL
837 B
C++
22 lines
No EOL
837 B
C++
#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;
|
|
|
|
bool callback(const google_breakpad::MinidumpDescriptor &descriptor, void *context, bool succeeded) {
|
|
printf("dump path: %s\n", descriptor.path());
|
|
return succeeded;
|
|
}*/
|
|
|
|
extern "C" {
|
|
void Java_org_telegram_messenger_NativeLoader_init(JNIEnv* env, jobject obj, jstring filepath, bool 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);
|
|
}*/
|
|
}
|
|
} |