mirror of
https://github.com/rommapp/grout.git
synced 2026-04-23 06:54:36 +00:00
Change artwork generation to support MinUI
Refactor artFileName assignment logic based on conditions.
This commit is contained in:
+6
-2
@@ -395,9 +395,13 @@ func (s *DownloadScreen) buildDownloads(config internal.Config, host romm.Host,
|
||||
if config.DownloadArt && (g.PathCoverLarge != "" || g.PathCoverSmall != "" || g.URLCover != "") {
|
||||
// Prepare download for cover art
|
||||
artDir := config.GetArtDirectory(gamePlatform)
|
||||
artFileName := g.FsNameNoExt + ".png"
|
||||
var artFileName string
|
||||
if cfw.GetCFW() == cfw.MinUI && len(g.Files) > 0 {
|
||||
artFileName = g.Files[0].FileName + ".png"
|
||||
} else {
|
||||
artFileName = g.FsNameNoExt + ".png"
|
||||
}
|
||||
artLocation := filepath.Join(artDir, artFileName)
|
||||
|
||||
coverURL := g.GetArtworkURL(config.ArtKind, host)
|
||||
gamelistRomEntry.ArtLocation.ImagePath = artLocation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user