Early-out checking for pinned folders

This commit is contained in:
Henrik Rydgård committed 2024-11-29 11:14:52 +01:00
1 parent b15f7fd9fa
commit 767a82014a
1 file changed
+4
+4
View File
@@ -978,6 +978,10 @@ std::vector<Path> GameBrowser::GetPinnedPaths() const {
#else
static const std::string sepChars = "/\\";
#endif
if (g_Config.vPinnedPaths.empty()) {
// Early-out.
return std::vector<Path>();
}
const std::string currentPath = File::ResolvePath(path_.GetPath().ToString());
const std::vector<std::string> paths = g_Config.vPinnedPaths;