32 lines
405 B
Go
32 lines
405 B
Go
|
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() {
|
||
|
|
||
|
}
|