Report crash in a dialog

This commit is contained in:
PabloG02
2023-05-10 17:45:23 +02:00
committed by Niccolò Betto
parent e039a0ee94
commit 17ebf18f6c
5 changed files with 35 additions and 3 deletions

View File

@ -64,6 +64,7 @@ namespace skyline {
closeKeyboardId{environ->GetMethodID(instanceClass, "closeKeyboard", "(Lemu/skyline/applet/swkbd/SoftwareKeyboardDialog;)V")},
showValidationResultId{environ->GetMethodID(instanceClass, "showValidationResult", "(Lemu/skyline/applet/swkbd/SoftwareKeyboardDialog;ILjava/lang/String;)I")},
getIntegerValueId{environ->GetMethodID(environ->FindClass("java/lang/Integer"), "intValue", "()I")},
reportCrashId{environ->GetMethodID(instanceClass, "reportCrash", "()V")},
showPipelineLoadingScreenId{environ->GetMethodID(instanceClass, "showPipelineLoadingScreen", "(I)V")},
updatePipelineLoadingProgressId{environ->GetMethodID(instanceClass, "updatePipelineLoadingProgress", "(I)V")},
hidePipelineLoadingScreenId{environ->GetMethodID(instanceClass, "hidePipelineLoadingScreen", "()V")},
@ -165,6 +166,10 @@ namespace skyline {
return result;
}
void JvmManager::reportCrash() {
env->CallVoidMethod(instance, reportCrashId);
}
void JvmManager::ShowPipelineLoadingScreen(u32 totalPipelineCount) {
env->CallVoidMethod(instance, showPipelineLoadingScreenId, static_cast<jint>(totalPipelineCount));
}