diff --git a/fclauncher/InstanceManager.go b/fclauncher/InstanceManager.go index 7891d46..3957a8d 100644 --- a/fclauncher/InstanceManager.go +++ b/fclauncher/InstanceManager.go @@ -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")) +} diff --git a/fclauncher/app.go b/fclauncher/app.go index fbf076e..ec5e4bf 100644 --- a/fclauncher/app.go +++ b/fclauncher/app.go @@ -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")