Merge branch 'tristan-wip' of https://gitea.clubconjure.com/Conjure/conjure-os into tristan-wip

This commit is contained in:
club 2025-06-29 20:02:08 -04:00
commit ac5eff0c09
2 changed files with 3 additions and 2 deletions

View File

@ -8,8 +8,8 @@ type Game struct {
Version string
Description string
Players string
ThumbnailPath string
ImagePath string
ThumbnailPath string `yaml:"thumbnailPath"`
ImagePath string `yaml:"imagePath"`
Release string
Modification string
Files string

View File

@ -205,6 +205,7 @@ func GetConjureGameInfo() []models.Game {
fmt.Println("Contents of metadata.txt:")
metadata, err := io.ReadAll(rc)
game := parseGameInfo(metadata)
fmt.Println(game.ThumbnailPath)
game.ThumbnailPath = filepath.Join(conjBase, game.ThumbnailPath)
game.ImagePath = filepath.Join(conjBase, game.ImagePath)
games = append(games, game)