tristan-wip #2
@ -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
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user