mirror of
https://github.com/k1tbyte/Wand-Enhancer.git
synced 2026-09-04 17:23:28 +00:00
bump version to 1.0.3.0, fixes related to WeMod rebranding, update references to use constants
This commit is contained in:
@@ -137,7 +137,7 @@ namespace WeModPatcher.Core
|
||||
new StaticPatcher(latestPath, logger, config).Patch();
|
||||
}
|
||||
|
||||
new RuntimePatcher(Path.Combine(latestPath, "WeMod.exe"))
|
||||
new RuntimePatcher(Path.Combine(latestPath, Constants.WeModExeName))
|
||||
.StartProcess();
|
||||
}
|
||||
|
||||
@@ -145,7 +145,7 @@ namespace WeModPatcher.Core
|
||||
|
||||
public static void KillWeMod()
|
||||
{
|
||||
Process[] processes = Process.GetProcessesByName("WeMod");
|
||||
Process[] processes = Process.GetProcessesByName(Constants.WeModBrandName);
|
||||
for (int i = 0; processes.Length > i || i < 5; i++)
|
||||
{
|
||||
foreach (var process in processes)
|
||||
@@ -160,7 +160,7 @@ namespace WeModPatcher.Core
|
||||
}
|
||||
}
|
||||
|
||||
processes = Process.GetProcessesByName("WeMod");
|
||||
processes = Process.GetProcessesByName(Constants.WeModBrandName);
|
||||
Thread.Sleep(250);
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ namespace WeModPatcher.Core
|
||||
_asarPath = Path.Combine(weModRootFolder, "resources", "app.asar");
|
||||
_unpackedPath = Path.Combine(weModRootFolder, "resources", "app.asar.unpacked");
|
||||
_backupPath = Path.Combine(weModRootFolder, "resources", "app.asar.backup");
|
||||
_exePath = Path.Combine(_weModRootFolder, "WeMod.exe");
|
||||
_exePath = Path.Combine(_weModRootFolder, Constants.WeModExeName);
|
||||
}
|
||||
|
||||
private static string GetFetchFieldName(string targetFunction)
|
||||
@@ -161,7 +161,7 @@ namespace WeModPatcher.Core
|
||||
CheckPathExists = true,
|
||||
AddExtension = true,
|
||||
SupportMultiDottedExtensions = false,
|
||||
FileName = "WeMod",
|
||||
FileName = Constants.WeModBrandName,
|
||||
};
|
||||
|
||||
if(fileDialog.ShowDialog() != DialogResult.OK)
|
||||
|
||||
Reference in New Issue
Block a user