mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
Initial draft of the Homebrew Store. Lets you install a few homebrew.
This commit is contained in:
1 parent
cd6962497a
commit
2fb2602387
11 files changed
+534
-9
No files matched your search
@@ -439,7 +439,7 @@ void GameInfoCache::Add(const std::string &key, GameInfo *info_) {
|
||||
// This may run off-main-thread and we thus can't use the global
|
||||
// pspFileSystem (well, we could with synchronization but there might not
|
||||
// even be a game running).
|
||||
GameInfo *GameInfoCache::GetInfo(const std::string &gamePath, bool wantBG) {
|
||||
GameInfo *GameInfoCache::GetInfo(const std::string &gamePath, bool wantBG, bool synchronous) {
|
||||
auto iter = info_.find(gamePath);
|
||||
if (iter != info_.end()) {
|
||||
GameInfo *info = iter->second;
|
||||
@@ -501,6 +501,10 @@ again:
|
||||
GameInfoWorkItem *item = new GameInfoWorkItem(gamePath, info);
|
||||
gameInfoWQ_->Add(item);
|
||||
|
||||
if (synchronous) {
|
||||
gameInfoWQ_->Wait(item);
|
||||
}
|
||||
|
||||
info_[gamePath] = info;
|
||||
return info;
|
||||
}
|
||||
Reference in new issue
Block a user