[appcontent] Saving temp to user directory instead of appdata (#885)
This commit is contained in:
parent
dfb7efa5df
commit
b6f71b312b
|
|
@ -225,7 +225,7 @@ public static class AppContentExports
|
|||
|
||||
var invalidChars = Path.GetInvalidFileNameChars();
|
||||
appName = new string(appName.Select(ch => invalidChars.Contains(ch) ? '_' : ch).ToArray());
|
||||
var root = Path.Combine(Path.GetTempPath(), "SharpEmu", appName, "temp0");
|
||||
var root = Path.Combine(AppContext.BaseDirectory, "user", "temp", appName, "temp0");
|
||||
Environment.SetEnvironmentVariable(temp0VariableName, root);
|
||||
return root;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5423,7 +5423,7 @@ public static partial class KernelMemoryCompatExports
|
|||
|
||||
var invalidChars = Path.GetInvalidFileNameChars();
|
||||
appName = new string(appName.Select(ch => invalidChars.Contains(ch) ? '_' : ch).ToArray());
|
||||
var root = Path.Combine(Path.GetTempPath(), "SharpEmu", appName, "temp0");
|
||||
var root = Path.Combine(AppContext.BaseDirectory, "user", "temp", appName, "temp0");
|
||||
Environment.SetEnvironmentVariable(temp0VariableName, root);
|
||||
return root;
|
||||
}
|
||||
|
|
@ -5492,7 +5492,7 @@ public static partial class KernelMemoryCompatExports
|
|||
|
||||
var invalidChars = Path.GetInvalidFileNameChars();
|
||||
appName = new string(appName.Select(ch => invalidChars.Contains(ch) ? '_' : ch).ToArray());
|
||||
return Path.Combine(Path.GetTempPath(), "SharpEmu", appName);
|
||||
return Path.Combine(AppContext.BaseDirectory, "user", "temp", appName);
|
||||
}
|
||||
|
||||
private static void EnsureOpenParentDirectoryExists(string guestPath, string hostPath, int flags)
|
||||
|
|
|
|||
Loading…
Reference in New Issue