Path code cleanup, move some UI code (#21037)

* Move a bunch of path logic into Core/Util/PathUtil.cpp/h

.

* Move GameImageView out from SaveDataScreen

* More cleanup, add a translation string
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2025-11-25 00:44:24 +01:00
1 parent 3116eba395
commit b8fced5b41
72 files changed
+416 -330

No files matched your search

+6 -3
View File
@@ -402,13 +402,16 @@ void GameInfo::SetTitle(const std::string &newTitle) {
}
void GameInfo::FinishPendingTextureLoads(Draw::DrawContext *draw) {
if (draw && icon.dataLoaded && !icon.texture) {
if (!draw) {
return;
}
if (icon.dataLoaded && !icon.texture) {
SetupTexture(draw, icon);
}
if (draw && pic0.dataLoaded && !pic0.texture) {
if (pic0.dataLoaded && !pic0.texture) {
SetupTexture(draw, pic0);
}
if (draw && pic1.dataLoaded && !pic1.texture) {
if (pic1.dataLoaded && !pic1.texture) {
SetupTexture(draw, pic1);
}
}