Skip to content

Commit f3168df

Browse files
Merge pull request #208 from klinkertinlegs/patch-9
Change artwork downloading for MinUI
2 parents 09288c9 + df81674 commit f3168df

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

cfw/minui/minui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func GetBaseSavePath() string {
5050
}
5151

5252
func GetArtDirectory(romDir string) string {
53-
return filepath.Join(romDir, ".media")
53+
return filepath.Join(romDir, ".res")
5454
}
5555

5656
func GetBIOSFilePaths(relativePath, platformFSSlug string) []string {

ui/download.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,13 @@ func (s *DownloadScreen) buildDownloads(config internal.Config, host romm.Host,
395395
if config.DownloadArt && (g.PathCoverLarge != "" || g.PathCoverSmall != "" || g.URLCover != "") {
396396
// Prepare download for cover art
397397
artDir := config.GetArtDirectory(gamePlatform)
398-
artFileName := g.FsNameNoExt + ".png"
398+
var artFileName string
399+
if cfw.GetCFW() == cfw.MinUI && len(g.Files) > 0 {
400+
artFileName = g.Files[0].FileName + ".png"
401+
} else {
402+
artFileName = g.FsNameNoExt + ".png"
403+
}
399404
artLocation := filepath.Join(artDir, artFileName)
400-
401405
coverURL := g.GetArtworkURL(config.ArtKind, host)
402406
gamelistRomEntry.ArtLocation.ImagePath = artLocation
403407

0 commit comments

Comments
 (0)