From c3b3fcd11129a4ef36edfacb97b0c92fe745577d Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 25 Oct 2020 20:30:03 +0100 Subject: [PATCH] [RAPPS] Abort screenshot iteration on the first not found This should decrease startup time / db parse time --- base/applications/rapps/available.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/base/applications/rapps/available.cpp b/base/applications/rapps/available.cpp index fa266d7f5e1..075afd7063a 100644 --- a/base/applications/rapps/available.cpp +++ b/base/applications/rapps/available.cpp @@ -67,7 +67,9 @@ VOID CAvailableApplicationInfo::RetrieveGeneralInfo(AvailableStrings& AvlbString CStringW ScrnshotLocation; if (!GetString(ScrnshotField, ScrnshotLocation)) { - continue; + // We stop at the first screenshot not found, + // so screenshots _have_ to be consecutive + break; }