initial commit
This commit is contained in:
29
internal/oplcli.go
Normal file
29
internal/oplcli.go
Normal file
@@ -0,0 +1,29 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user