From a84cb357dcd87a43b76c2693da7c72cc4c954e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 13 Aug 2023 17:55:30 +0200 Subject: [PATCH] Comment fixes, adjust a couple of sleeps --- Common/File/PathBrowser.cpp | 10 +--------- android/jni/app-android.cpp | 4 ++-- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Common/File/PathBrowser.cpp b/Common/File/PathBrowser.cpp index 4aba1b41e4..9af0f4f86e 100644 --- a/Common/File/PathBrowser.cpp +++ b/Common/File/PathBrowser.cpp @@ -210,7 +210,7 @@ std::string PathBrowser::GetFriendlyPath() const { bool PathBrowser::GetListing(std::vector &fileInfo, const char *filter, bool *cancel) { std::unique_lock guard(pendingLock_); while (!IsListingReady() && (!cancel || !*cancel)) { - // In case cancel changes, just sleep. + // In case cancel changes, just sleep. TODO: Replace with condition variable. guard.unlock(); sleep_ms(50); guard.lock(); @@ -221,14 +221,6 @@ bool PathBrowser::GetListing(std::vector &fileInfo, const char * } bool PathBrowser::CanNavigateUp() { -/* Leaving this commented out, not sure if there's a use in UWP for navigating up from the user data folder. -#if PPSSPP_PLATFORM(UWP) - // Can't navigate up from memstick folder :( - if (path_ == GetSysDirectory(DIRECTORY_MEMSTICK_ROOT)) { - return false; - } -#endif -*/ return path_.CanNavigateUp(); } diff --git a/android/jni/app-android.cpp b/android/jni/app-android.cpp index 19b57775f6..1cd0adc908 100644 --- a/android/jni/app-android.cpp +++ b/android/jni/app-android.cpp @@ -311,7 +311,7 @@ static void EmuThreadFunc() { // Wait for render loop to get started. INFO_LOG(SYSTEM, "Runloop: Waiting for displayInit..."); while (!graphicsContext || graphicsContext->GetState() == GraphicsContextState::PENDING) { - sleep_ms(20); + sleep_ms(5); } // Check the state of the graphics context before we try to feed it into NativeInitGraphics. @@ -1311,7 +1311,7 @@ extern "C" void JNICALL Java_org_ppsspp_ppsspp_NativeActivity_requestExitVulkanR } exitRenderLoop = true; while (renderLoopRunning) { - sleep_ms(10); + sleep_ms(5); } }