Skip to content

Commit

Permalink
Fix .NET Core Everest update detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Popax21 authored and maddie480 committed May 4, 2023
1 parent 02825d7 commit 4c22a6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MiniInstaller/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Program {
"lib64-win-x64", "lib64-win-x86", "lib64-linux", "lib64-osx",
"Celeste.dll", "Celeste.runtimeconfig.json",
"Celeste.deps.json", "Celeste.Mod.mm.deps.json", "NETCoreifier.deps.json",
"MiniInstaller-win.exe", "MiniInstaller-linux", "MiniInstaller-osx", "MiniInstaller-win.exe.manifest",
"MiniInstaller-win.exe", "MiniInstaller-win64.exe", "MiniInstaller-linux", "MiniInstaller-osx", "MiniInstaller-win.exe.manifest",
"MiniInstaller.dll", "MiniInstaller.runtimeconfig.json", "MiniInstaller.deps.json",

"MonoMod.Backports.dll", "MonoMod.Backports.pdb", "MonoMod.Backports.xml",
Expand Down Expand Up @@ -191,8 +191,9 @@ public static bool SetupPaths() {
PathGame = Directory.GetCurrentDirectory();
Console.WriteLine(PathGame);

if (Path.GetFileName(PathGame) == "everest-update" &&
File.Exists(Path.Combine(Path.GetDirectoryName(PathGame), "Celeste.exe"))) {
if (Path.GetFileName(PathGame) == "everest-update" && (
File.Exists(Path.Combine(Path.GetDirectoryName(PathGame), "Celeste.exe")) || File.Exists(Path.Combine(Path.GetDirectoryName(PathGame), "Celeste.dll"))
)) {
// We're updating Everest via the in-game installler.
PathUpdate = PathGame;
PathGame = Path.GetDirectoryName(PathUpdate);
Expand Down

0 comments on commit 4c22a6e

Please sign in to comment.