diff --git a/app.go b/app.go index 3d8639e..9ad4f4b 100644 --- a/app.go +++ b/app.go @@ -62,8 +62,12 @@ func (a *App) onControllerChange(state inputs.ControllerState) { } func (a *App) StartGame(id string) { + found := false + fmt.Println(id) for _, game := range games { + fmt.Println(game.Id) if game.Id == id { + found = true gamePath := provider.ExtractGame(game) cmd := exec.Command(gamePath) gameIsOpen = true @@ -90,6 +94,8 @@ func (a *App) StartGame(id string) { gameIsOpen = false } } + fmt.Printf("Found %b", found) + fmt.Println() } func (a *App) LoadGames() []models.Metadata { diff --git a/frontend/package.json.md5 b/frontend/package.json.md5 index 7f01a6d..3dfc225 100755 --- a/frontend/package.json.md5 +++ b/frontend/package.json.md5 @@ -1 +1 @@ -0439ac4c00128949ad585ea9e2f68e8e \ No newline at end of file +0d0407303e68412fce4ec212f727db35 \ No newline at end of file diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 9cf16b9..5310a17 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -16,13 +16,19 @@ :game="selectedGame" @qr="store.showQr" /> - +
+ +
+ +
+
@@ -60,9 +66,7 @@ const { } = storeToRefs(store); onMounted(async () => { - games.value = await fetchGames(); - tags.value = [...new Set(games.value.flatMap(game => game.genres.split(",")))]; - store.selectTag(tags.value[0]) + await store.loadGames(); }); // Create the gradient background style diff --git a/frontend/src/components/GameCarousel.vue b/frontend/src/components/GameCarousel.vue index 9903cc0..79139ad 100644 --- a/frontend/src/components/GameCarousel.vue +++ b/frontend/src/components/GameCarousel.vue @@ -1,7 +1,7 @@