mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-04-19 23:59:03 +08:00
fix #31
This commit is contained in:
@@ -193,7 +193,8 @@ public static class Utils {
|
||||
|
||||
// ReSharper disable once UnusedMethodReturnValue.Global
|
||||
public static Thread StartAndWaitResult(string exePath, Func<string, bool> onReceive) {
|
||||
const string lib = "C:/ProgramData/yae.dll";
|
||||
var dataDir = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
|
||||
var lib = Path.Combine(dataDir, "yae.dll");
|
||||
File.Copy(Path.GetFullPath(GlobalVars.LibName), lib, true);
|
||||
AppDomain.CurrentDomain.ProcessExit += (_, _) => {
|
||||
File.Delete(lib);
|
||||
|
||||
Reference in New Issue
Block a user