fix temp directory pathing in path manager which was previously making no attempt to do the right thing (fixes #2118). did I do this right? I don't see what was so hard about it in the first place, but I had left a todo there..... i dunno

This commit is contained in:
zeromus 2020-06-09 23:27:49 -05:00
parent f9ffeec81b
commit c9c1aa91ad
1 changed files with 4 additions and 6 deletions

View File

@ -320,12 +320,10 @@ namespace BizHawk.Client.Common
/// </summary>
public static void RefreshTempPath(this PathEntryCollection collection)
{
if (!string.IsNullOrWhiteSpace(collection.TempFilesFragment))
{
// TODO - BUG - needs to route through PathManager.MakeAbsolutePath or something similar, but how?
string target = collection.TempFilesFragment;
TempFileManager.HelperSetTempPath(target);
}
if (string.IsNullOrWhiteSpace(collection.TempFilesFragment))
return;
var path = collection.AbsolutePathFor(collection.TempFilesFragment, null);
TempFileManager.HelperSetTempPath(path);
}
private static string ResolveToolsPath(this PathEntryCollection collection, string subPath)