Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit e76bdc4

Browse files
committed
Add commentary.
1 parent 6af0544 commit e76bdc4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

PenumbraModForwarder.UI/Program.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ private static void OnApplicationExit(object? sender, EventArgs e) {
4646
}
4747

4848
public static void DownloadAndUpdateToAtomos() {
49+
// Atomos isn't compatible with AutoUpdater.Net so we have to handle getting to the first version of v2 ourselves.
4950
string downloadPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Atomos.zip");
5051
string atomosPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Atomos.Launcher.exe");
5152
using (var client = new WebClient()) {
@@ -57,7 +58,8 @@ public static void DownloadAndUpdateToAtomos() {
5758
}
5859
public static void CleanupOldFiles(string[] paths) {
5960
foreach (var item in paths) {
60-
if (item.EndsWith(".dll") || item.EndsWith(".dll")) {
61+
// Only remove former execution files.
62+
if (item.EndsWith(".dll") || item.EndsWith(".exe")) {
6163
Process.Start(new ProcessStartInfo() {
6264
Arguments = "/C choice /C Y /N /D Y /T 3 & Del \"" + item + "\"",
6365
WindowStyle = ProcessWindowStyle.Hidden, CreateNoWindow = true, FileName = "cmd.exe"

0 commit comments

Comments
 (0)