More fixes, more gamescreen button fixes

This commit is contained in:
Henrik Rydgård
2026-02-12 01:35:57 +01:00
parent 2797cfca56
commit ca127b0e5b
3 changed files with 12 additions and 15 deletions
+1
View File
@@ -22,6 +22,7 @@
#include "Core/MemMap.h"
#include "Core/MIPS/ARM64/Arm64RegCache.h"
#include "Core/MIPS/ARM64/Arm64Jit.h"
#include "Core/MIPS/MIPSAnalyst.h"
#include "Core/Reporting.h"
#include "Common/Arm64Emitter.h"
+10 -3
View File
@@ -202,7 +202,6 @@ void GameScreen::CreateContentViews(UI::ViewGroup *parent) {
}
mainGameInfo->SetSpacing(3.0f);
GameDBInfo dbInfo;
std::vector<GameDBInfo> dbInfos;
const bool inGameDB = g_gameDB.GetGameInfos(info_->id_version, &dbInfos);
@@ -482,10 +481,18 @@ void GameScreen::OnCreateConfig(UI::EventParams &e) {
}
std::string_view GameScreen::GetTitle() const {
if (knownFlags_ & GameInfoFlags::PARAM_SFO) {
titleCache_ = info_->GetDBTitle();
if (!info_->Ready(GameInfoFlags::PARAM_SFO)) {
return "";
}
// Don't look up homebrew in the database, sometimes they take IDs from games.
if (info_->fileType != IdentifiedFileType::PSP_PBP_DIRECTORY) {
if (knownFlags_ & GameInfoFlags::PARAM_SFO) {
titleCache_ = info_->GetDBTitle();
}
} else {
titleCache_ = info_->GetTitle();
}
return titleCache_;
}
+1 -12
View File
@@ -416,7 +416,6 @@ void GameButton::Draw(UIContext &dc) {
if (overlayColor) {
dc.FillRect(Drawable(overlayColor), overlayBounds);
}
return;
}
char discNumInfo[8];
@@ -428,17 +427,7 @@ void GameButton::Draw(UIContext &dc) {
dc.Draw()->Flush();
dc.RebindTexture();
dc.SetFontStyle(dc.GetTheme().uiFont);
if (gridStyle_ && ginfo->fileType == IdentifiedFileType::PPSSPP_GE_DUMP) {
// Super simple drawing for GE dumps (no icon, just the filename).
dc.PushScissor(bounds_);
const std::string currentTitle = ginfo->GetTitle();
dc.SetFontStyle(*GetTextStyle(dc, UI::TextSize::Small));
dc.DrawText(title_, bounds_.x + 4.0f, bounds_.centerY(), style.fgColor, ALIGN_VCENTER | ALIGN_LEFT);
dc.SetFontStyle(dc.GetTheme().uiFont);
title_ = currentTitle;
dc.Draw()->Flush();
dc.PopScissor();
} else if (!gridStyle_) {
if (!gridStyle_) {
float tw, th;
dc.Draw()->Flush();
dc.PushScissor(bounds_);