mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-15 02:29:51 +01:00
GameScreen: Know whether the game is homebrew before creating either pane
isHomebrew_ was set in CreateSettingsViews, but CreateContentViews uses it too, and in portrait it's created first. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
75b0fbe30c
commit
a897b95b75
2 files changed
+6
-2
No files matched your search
+5
-2
@@ -257,6 +257,11 @@ void GameScreen::RefreshInstalledUpdate() {
|
||||
hasInstalledUpdate_ = FindInstalledGameUpdate(info_->id, &installedUpdate_);
|
||||
}
|
||||
|
||||
// Both panes use isHomebrew_, and which is created first depends on orientation.
|
||||
void GameScreen::BeforeCreateViews() {
|
||||
isHomebrew_ = info_ && info_->region == GameRegion::HOMEBREW;
|
||||
}
|
||||
|
||||
void GameScreen::CreateContentViews(UI::ViewGroup *parent) {
|
||||
if (!info_) {
|
||||
// Shouldn't happen
|
||||
@@ -579,8 +584,6 @@ void GameScreen::CreateSettingsViews(UI::ViewGroup *rightColumn) {
|
||||
});
|
||||
}
|
||||
|
||||
isHomebrew_ = info_ && info_->region == GameRegion::HOMEBREW;
|
||||
|
||||
const bool packing = GamePacker::IsPacking(gamePath_);
|
||||
if (fileTypeSupportCRC && !isHomebrew_ && !Reporting::HasCRC(gamePath_) && !packing) {
|
||||
rightColumnItems->Add(new Choice(ga->T("Calculate CRC"), ImageID("I_CHECKMARK")))->OnClick.Add([this](UI::EventParams &) {
|
||||
|
||||
Reference in new issue
Block a user