Initial draft of the Homebrew Store. Lets you install a few homebrew.

This commit is contained in:
Henrik Rydgård committed 2013-12-05 12:48:08 +01:00
1 parent cd6962497a
commit 2fb2602387
11 files changed
+534 -9

No files matched your search

+5 -1
View File
@@ -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;
}