Files
opl-cli/internal/oplcli.go
2026-01-04 21:26:49 +01:00

30 lines
519 B
Go

package oplcli
import (
"fmt"
"os"
)
type Config struct {
}
func Scan(file string, config Config) {
fmt.Printf("Scanning file: %s\n", file)
gameID, err := scanGameFileForID(file)
if err != nil {
fmt.Printf("Failed to scan game file: %s", err)
os.Exit(1)
}
fmt.Printf("Found game ID: %s\n", gameID)
gameList, err := loadGamelist("./ps2-gameslist.txt")
if err != nil {
fmt.Printf("Failed to load game list: %v", err)
}
gameName := gameList[gameID]
fmt.Printf("Found game name: %s\n", gameName)
}