bump version to 1.0.3.0, fixes related to WeMod rebranding, update references to use constants

This commit is contained in:
kitbyte
2025-11-03 22:43:45 +02:00
parent 9ba60a09a7
commit 8f14ee2939
6 changed files with 21 additions and 16 deletions
+3 -3
View File
@@ -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);
}
+2 -2
View File
@@ -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)