From d7ed0167689c8975e8dcddd973c02d6506120ce4 Mon Sep 17 00:00:00 2001 From: altalk23 <45172705+altalk23@users.noreply.github.com> Date: Mon, 22 Jan 2024 19:11:17 +0300 Subject: [PATCH] fix logcat adding all crashlogs if last crash didnt result in the thing --- loader/src/platform/android/crashlog.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/loader/src/platform/android/crashlog.cpp b/loader/src/platform/android/crashlog.cpp index 7a766665..fb7c66e3 100644 --- a/loader/src/platform/android/crashlog.cpp +++ b/loader/src/platform/android/crashlog.cpp @@ -276,8 +276,13 @@ bool crashlog::setupPlatformHandler() { if (begin != std::string::npos) { s_result = s_result.substr(begin); } + else { + s_result = "Logcat buffer is empty."; + } s_lastLaunchCrashed = true; - + } + else { + s_result = "Logcat buffer is empty."; } return true;