It never ends...

This commit is contained in:
Henrik Rydgård committed 2021-05-13 10:39:16 +02:00
1 parent a40b1dec5f
commit 2e16e83159
43 files changed
+292 -277

No files matched your search

+3 -3
View File
@@ -96,7 +96,7 @@ void GameScreen::CreateViews() {
tvRegion_->SetShadow(true);
tvCRC_ = infoLayout->Add(new TextView("", ALIGN_LEFT, true, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)));
tvCRC_->SetShadow(true);
tvCRC_->SetVisibility(Reporting::HasCRC(gamePath_.ToString()) ? V_VISIBLE : V_GONE);
tvCRC_->SetVisibility(Reporting::HasCRC(gamePath_) ? V_VISIBLE : V_GONE);
} else {
tvTitle_ = nullptr;
tvGameSize_ = nullptr;
@@ -240,9 +240,9 @@ void GameScreen::render() {
}
}
if (tvCRC_ && Reporting::HasCRC(gamePath_.ToString())) {
if (tvCRC_ && Reporting::HasCRC(gamePath_)) {
auto rp = GetI18NCategory("Reporting");
std::string crc = StringFromFormat("%08X", Reporting::RetrieveCRC(gamePath_.ToString()));
std::string crc = StringFromFormat("%08X", Reporting::RetrieveCRC(gamePath_));
tvCRC_->SetText(ReplaceAll(rp->T("FeedbackCRCValue", "Disc CRC: [VALUE]"), "[VALUE]", crc));
tvCRC_->SetVisibility(UI::V_VISIBLE);
}