FCLauncher/fclauncher/Prism.go

32 lines
405 B
Go
Raw Normal View History

2024-10-24 17:05:47 -06:00
package main
import (
"os"
"path/filepath"
)
type Prism struct {
Instances []Instance
}
type Instance struct {
Path string
Name string
MCVer string
JavaVer string
}
func (Prism) CheckInstalled() bool {
path, _ := os.UserConfigDir()
_, err := os.Stat(filepath.Join(path, "FCLauncher", "prism"))
if err == nil {
return true
} else {
return false
}
}
func (Prism) Install() {
}