mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Set the CRC banner on the game screen to fit contents, instead of the screen.
Also make sure it's not visible when it shouldn't be
This commit is contained in:
1 parent
853810b59f
commit
f13d339ed3
2 files changed
+3
-7
No files matched your search
+2
-6
@@ -335,7 +335,7 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) {
|
||||
}
|
||||
}
|
||||
if (found) {
|
||||
NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("ISO OK according to the ReDump project"), "", new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)));
|
||||
NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("ISO OK according to the ReDump project"), "", new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT)));
|
||||
tvVerified->SetLevel(NoticeLevel::SUCCESS);
|
||||
}
|
||||
}
|
||||
@@ -359,17 +359,13 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) {
|
||||
// INFO_LOG(Log::Loader, "File size %d not matching game DB", (int)info_->gameSizeUncompressed);
|
||||
}
|
||||
|
||||
NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("Click \"Calculate CRC\" to verify ISO"), "", new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)));
|
||||
NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("Click \"Calculate CRC\" to verify ISO"), "", new LinearLayoutParams(WRAP_CONTENT, WRAP_CONTENT)));
|
||||
tvVerified->SetVisibility(UI::V_VISIBLE);
|
||||
tvVerified->SetLevel(NoticeLevel::INFO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
NoticeView *tvVerified = infoLayout->Add(new NoticeView(NoticeLevel::INFO, ga->T("Click \"Calculate CRC\" to verify ISO"), "", new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT)));
|
||||
tvVerified->SetVisibility(UI::V_GONE);
|
||||
tvVerified->SetSquishy(true);
|
||||
|
||||
// Show plugin info_, if any. Later might add checkboxes.
|
||||
auto plugins = HLEPlugins::FindPlugins(info_->id, g_Config.sLanguageIni);
|
||||
if (!plugins.empty()) {
|
||||
|
||||
+1
-1
@@ -833,7 +833,7 @@ std::string GetConfirmExitMessage() {
|
||||
return confirmMessage;
|
||||
}
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
confirmMessage = ApplySafeSubstitutions(di->T("You haven't saved your progress for %1."), NiceTimeFormat((int)unsavedSeconds));
|
||||
confirmMessage += ApplySafeSubstitutions(di->T("You haven't saved your progress for %1."), NiceTimeFormat((int)unsavedSeconds));
|
||||
confirmMessage += '\n';
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user