mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-26 07:43:36 +01:00
Hide the homebrew store behind a ini option for now
This commit is contained in:
1 parent
6e60db7c22
commit
bc6ecb8ef6
3 files changed
+11
-3
No files matched your search
@@ -71,6 +71,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
general->Get("IgnoreBadMemAccess", &bIgnoreBadMemAccess, true);
|
||||
general->Get("CurrentDirectory", ¤tDirectory, "");
|
||||
general->Get("ShowDebuggerOnLoad", &bShowDebuggerOnLoad, false);
|
||||
general->Get("HomebrewStore", &bHomebrewStore, false);
|
||||
|
||||
if (!File::Exists(currentDirectory))
|
||||
currentDirectory = "";
|
||||
|
||||
@@ -48,6 +48,7 @@ public:
|
||||
|
||||
bool bAutoRun; // start immediately
|
||||
bool bBrowse; // when opening the emulator, immediately show a file browser
|
||||
bool bHomebrewStore;
|
||||
|
||||
// General
|
||||
int iNumWorkerThreads;
|
||||
|
||||
+9
-3
@@ -388,9 +388,10 @@ void GameBrowser::Refresh() {
|
||||
}
|
||||
}
|
||||
|
||||
if (allowBrowsing_)
|
||||
if (allowBrowsing_) {
|
||||
gameList_->Add(new UI::Button("..", new UI::LinearLayoutParams(UI::FILL_PARENT, UI::FILL_PARENT)))->
|
||||
OnClick.Handle(this, &GameBrowser::NavigateClick);
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < dirButtons.size(); i++) {
|
||||
gameList_->Add(dirButtons[i])->OnClick.Handle(this, &GameBrowser::NavigateClick);
|
||||
@@ -402,9 +403,11 @@ void GameBrowser::Refresh() {
|
||||
b->OnHoldClick.Handle(this, &GameBrowser::GameButtonHoldClick);
|
||||
}
|
||||
|
||||
if (flags_ & FLAG_HOMEBREWSTOREBUTTON) {
|
||||
if (g_Config.bHomebrewStore && (flags_ & FLAG_HOMEBREWSTOREBUTTON)) {
|
||||
Add(new Spacer());
|
||||
homebrewStoreButton_ = Add(new Choice("Download from the PPSSPP Homebrew Store", new UI::LinearLayoutParams(UI::WRAP_CONTENT, UI::WRAP_CONTENT)));
|
||||
} else {
|
||||
homebrewStoreButton_ = 0;
|
||||
}
|
||||
|
||||
if (!lastText_.empty() && gameButtons.empty()) {
|
||||
@@ -476,7 +479,10 @@ void MainScreen::CreateViews() {
|
||||
FLAG_HOMEBREWSTOREBUTTON,
|
||||
new LinearLayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
||||
tabHomebrew->HomebrewStoreButton()->OnClick.Handle(this, &MainScreen::OnHomebrewStore);
|
||||
Choice *hbStore = tabHomebrew->HomebrewStoreButton();
|
||||
if (hbStore) {
|
||||
hbStore->OnClick.Handle(this, &MainScreen::OnHomebrewStore);
|
||||
}
|
||||
|
||||
scrollRecentGames->Add(tabRecentGames);
|
||||
scrollAllGames->Add(tabAllGames);
|
||||
|
||||
Reference in new issue
Block a user