From 13c83b234cf29ee7bc60c0c19e5d6f21e27b1e01 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh Date: Wed, 30 Dec 2020 05:28:32 +0700 Subject: [PATCH] printf not linebreak fix --- README.md | 2 +- src/main/jni/utils.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0db6b78f..593bba1a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Minecraft: Java Edition launcher for iOS, based on [PojavLauncher Android](https ## Installing OpenJDK 16 - Download [openjdk-16-jre • Procursus](https://www.ios-repo-updates.com/repository/procursus/package/openjdk-16-jre) .deb file (~40mb). -### For jailbroken iOS device (without Procursus) +### For jailbroken iOS device, install manually or add Procursus repo. - ssh to iOS or use a terminal, type these commands ``` # Grant root access diff --git a/src/main/jni/utils.c b/src/main/jni/utils.c index f1a0403d..c3b0c51b 100644 --- a/src/main/jni/utils.c +++ b/src/main/jni/utils.c @@ -82,9 +82,9 @@ JNIEXPORT jboolean JNICALL Java_net_kdt_pojavlaunch_utils_JREUtils_dlopen(JNIEnv const char *nameUtf = (*env)->GetStringUTFChars(env, name, 0); void* handle = dlopen(nameUtf, RTLD_GLOBAL | RTLD_LAZY); if (!handle) { - printf("dlopen %s failed: %s", nameUtf, dlerror()); + printf("dlopen %s failed: %s\n", nameUtf, dlerror()); } else { - printf("dlopen %s success", nameUtf); + printf("dlopen %s success\n", nameUtf); } (*env)->ReleaseStringUTFChars(env, name, nameUtf); return handle != NULL;