mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Add early-out for pinned path check (main screen perf)
This commit is contained in:
1 parent
0387dd7d64
commit
6ff1dff99f
1 file changed
+4
-1
+4
-1
@@ -958,7 +958,10 @@ void GameBrowser::Refresh() {
|
||||
}
|
||||
|
||||
bool GameBrowser::IsCurrentPathPinned() {
|
||||
const auto paths = g_Config.vPinnedPaths;
|
||||
const auto &paths = g_Config.vPinnedPaths;
|
||||
if (paths.empty()) {
|
||||
return false;
|
||||
}
|
||||
std::string resolved = File::ResolvePath(path_.GetPath().ToString());
|
||||
return std::find(paths.begin(), paths.end(), resolved) != paths.end();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user