From 4f6f0dddf0b33263eb8ae02e10da558613a5baf7 Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Tue, 5 Apr 2016 20:27:57 -0700 Subject: [PATCH] Add cache folder detection to main window open --- PKX/f1-Main.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PKX/f1-Main.cs b/PKX/f1-Main.cs index e50f77944..410f2acc4 100644 --- a/PKX/f1-Main.cs +++ b/PKX/f1-Main.cs @@ -204,6 +204,7 @@ private void mainMenuOpen(object sender, EventArgs e) // Detect main string cyberpath = Util.GetTempFolder(); + string cachepath = Util.GetCacheFolder(); pathSDF = Util.GetSDFLocation(); path3DS = Util.get3DSLocation(); if (path3DS != null && File.Exists(Path.Combine(Path.GetPathRoot(path3DS), "SaveDataBackup", "main"))) @@ -214,6 +215,8 @@ private void mainMenuOpen(object sender, EventArgs e) ofd.InitialDirectory = Path.GetPathRoot(path3DS); else if (Directory.Exists(Path.Combine(cyberpath, "root"))) ofd.InitialDirectory = Path.Combine(cyberpath, "root"); + else if (Directory.Exists(cachepath)) + ofd.InitialDirectory = cachepath; else if (Directory.Exists(cyberpath)) ofd.InitialDirectory = cyberpath; else if (File.Exists(Path.Combine(ofd.InitialDirectory, "main"))) { }