0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-12 16:50:43 -05:00

Merge pull request 'update temp files path' (!60) from waffle.lord/Launcher:fix/clear-temp-files into master

Reviewed-on: SPT/Launcher#60
This commit is contained in:
IsWaffle 2024-07-07 13:27:51 +00:00
commit e1680cc1c1

View File

@ -319,7 +319,7 @@ namespace SPT.Launcher
/// <returns>returns true if the temp folder was cleaned succefully or doesn't exist. returns false if something went wrong.</returns>
public bool CleanTempFiles()
{
var rootdir = new DirectoryInfo(Path.Combine(Path.GetTempPath(), @"Battlestate Games\EscapeFromTarkov"));
var rootdir = new DirectoryInfo(Path.Combine(Environment.CurrentDirectory, "user\\sptappdata"));
if (!rootdir.Exists)
{