Add info check

This commit is contained in:
iota97 2021-09-07 16:16:39 +02:00
parent 227333f45b
commit b44c991fc1

View file

@ -190,7 +190,7 @@ void GameScreen::CreateViews() {
} }
} }
bool isHomebrew = info->region > GAMEREGION_MAX; bool isHomebrew = info && info->region > GAMEREGION_MAX;
if (fileTypeSupportCRC && !isHomebrew && !Reporting::HasCRC(gamePath_) ) { if (fileTypeSupportCRC && !isHomebrew && !Reporting::HasCRC(gamePath_) ) {
btnCalcCRC_ = rightColumnItems->Add(new ChoiceWithValueDisplay(&CRC32string, ga->T("Calculate CRC"), (const char*)nullptr)); btnCalcCRC_ = rightColumnItems->Add(new ChoiceWithValueDisplay(&CRC32string, ga->T("Calculate CRC"), (const char*)nullptr));
btnCalcCRC_->OnClick.Handle(this, &GameScreen::OnDoCRC32); btnCalcCRC_->OnClick.Handle(this, &GameScreen::OnDoCRC32);