fix wrong temp directory

This commit is contained in:
2021-02-16 14:57:16 +01:00
parent c02942eb91
commit f096916089

View File

@@ -65,7 +65,9 @@ namespace PJ64Savestater
private static string GetDefaultProfileFilePath() private static string GetDefaultProfileFilePath()
{ {
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), DEFAULT_PROFILE_FILENAME); var dir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), Application.ProductName);
Directory.CreateDirectory(dir);
return Path.Combine(dir, DEFAULT_PROFILE_FILENAME);
} }
private void CheckForInput() private void CheckForInput()