added test link
This commit is contained in:
parent
e8c24ee540
commit
fab46be020
@ -603,3 +603,13 @@ func (i *InstanceManager) ImportMrpack(data io.Reader, name string) {
|
|||||||
wruntime.EventsEmit(i.app.Ctx, "download_complete")
|
wruntime.EventsEmit(i.app.Ctx, "download_complete")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (i *InstanceManager) OpenInstanceFolder(instance string) {
|
||||||
|
i.app.Status("Installing Fabric")
|
||||||
|
_, err := i.GetInstance(instance)
|
||||||
|
if err != nil {
|
||||||
|
fmt.Printf("Instance does not exist\n")
|
||||||
|
}
|
||||||
|
dir, _ := os.UserConfigDir()
|
||||||
|
openbrowser(filepath.Join(dir, "FCLauncher", "instances", instance, "minecraft"))
|
||||||
|
}
|
||||||
|
@ -73,6 +73,7 @@ func openbrowser(url string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *App) CheckPrerequisites() {
|
func (a *App) CheckPrerequisites() {
|
||||||
|
openbrowser("C:\\")
|
||||||
buff := new(bytes.Buffer)
|
buff := new(bytes.Buffer)
|
||||||
err := HttpDownload("launcher.json", buff, nil)
|
err := HttpDownload("launcher.json", buff, nil)
|
||||||
fmt.Printf("Starting\n")
|
fmt.Printf("Starting\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user