tristan-wip #2

Merged
TristanBrault merged 34 commits from tristan-wip into main 2025-07-19 19:58:58 +00:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit c5086f0ecc - Show all commits

View File

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

View File

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