This commit is contained in:
Tungstend 2023-07-10 22:24:21 +08:00
parent e0958f8d47
commit 681a6ceb1c
3 changed files with 5 additions and 5 deletions

View File

@ -537,7 +537,7 @@ public class GameMenu implements MenuCallback, View.OnClickListener {
@Override
public void onLog(String log) {
if (fclBridge != null) {
if (log.contains("OR:") || log.contains("ERROR:") || log.contains("INTERNAL ERROR:")){
if (log.contains("OR:") || log.contains("ERROR:") || log.contains("INTERNAL ERROR:")) {
return;
}
logWindow.appendLog(log);

View File

@ -187,9 +187,9 @@ public class FCLBridge implements Serializable {
Intent intent = new Intent(Intent.ACTION_VIEW);
String targetLink = link;
if (targetLink.startsWith("file://")) {
targetLink = targetLink.replace("file://","");
} else if (targetLink.startsWith("file:")){
targetLink = targetLink.replace("file:","");
targetLink = targetLink.replace("file://", "");
} else if (targetLink.startsWith("file:")) {
targetLink = targetLink.replace("file:", "");
}
intent.setDataAndType(Uri.parse(targetLink), "*/*");
context.startActivity(intent);

View File

@ -41,7 +41,7 @@ hooked_ProcessImpl_forkAndExec(JNIEnv *env, jobject process, jint mode, jbyteArr
(*androidVm)->AttachCurrentThread(androidVm, &androidEnv, NULL);
detachable = 1;
}
if (!androidEnv){
if (!androidEnv) {
FCL_INTERNAL_LOG("forkAndExec error:androidEnv in null");
}
jmethodID method_OpenLink = (*androidEnv)->GetStaticMethodID(androidEnv, fcl.class_FCLBridge, "openLink",