added test link

This commit is contained in:
= 2024-11-26 21:34:38 -07:00
parent e8c24ee540
commit fab46be020
2 changed files with 11 additions and 0 deletions

View File

@ -603,3 +603,13 @@ func (i *InstanceManager) ImportMrpack(data io.Reader, name string) {
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"))
}

View File

@ -73,6 +73,7 @@ func openbrowser(url string) {
}
func (a *App) CheckPrerequisites() {
openbrowser("C:\\")
buff := new(bytes.Buffer)
err := HttpDownload("launcher.json", buff, nil)
fmt.Printf("Starting\n")