Merge branch 'tristan-wip' of https://gitea.clubconjure.com/Conjure/conjure-os into tristan-wip
This commit is contained in:
commit
ac5eff0c09
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user