Merge pull request #14635 from JosJuice/android-panic-log-crash
Android: Move alert message log from Kotlin to C++
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -480,7 +480,6 @@ object NativeLibrary {
|
||||
fun displayAlertMsg(
|
||||
caption: String, text: String, yesNo: Boolean, isWarning: Boolean, nonBlocking: Boolean
|
||||
): Boolean {
|
||||
Log.error("[NativeLibrary] Alert: $text")
|
||||
val emulationActivity = emulationActivityRef.get()
|
||||
var result = false
|
||||
|
||||
|
||||
@@ -202,6 +202,8 @@ std::unique_ptr<GBAHostInterface> Host_CreateGBAHost(std::weak_ptr<HW::GBA::Core
|
||||
|
||||
static bool MsgAlert(const char* caption, const char* text, bool yes_no, Common::MsgType style)
|
||||
{
|
||||
__android_log_print(ANDROID_LOG_ERROR, DOLPHIN_TAG, "[NativeLibrary] Alert: %s", text);
|
||||
|
||||
JNIEnv* env = IDCache::GetEnvForThread();
|
||||
|
||||
jstring j_caption = ToJString(env, caption);
|
||||
|
||||
Reference in new issue
Block a user