Skip to content

Commit 9967650

Browse files
committed
Use a custom temp folder for console mode.
1 parent 31ad25b commit 9967650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xivModdingFramework/Cache/ConsoleConfig.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.IO;
44
using System.Threading.Tasks;
55
using xivModdingFramework.General.Enums;
6+
using xivModdingFramework.Helpers;
67

78
namespace xivModdingFramework.Cache
89
{
@@ -80,6 +81,10 @@ public static async Task InitCacheFromConfig(bool runWorker = false)
8081
throw new ArgumentException("Console Config file does not have a valid FFXIV File path configured.");
8182
}
8283
await XivCache.SetGameInfo(new DirectoryInfo(c.XivPath), c.XivLanguage, runWorker);
84+
85+
// Set a unique temp path.
86+
var tempDir = IOUtil.GetUniqueSubfolder(Path.GetTempPath(), "xivct");
87+
XivCache.FrameworkSettings.TempDirectory = tempDir;
8388
}
8489
}
8590
}

0 commit comments

Comments
 (0)