Skip to content

Commit

Permalink
Default to Application Executable Name when using Fallback Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
HerpDerpinstine committed Feb 4, 2025
1 parent 1a13d80 commit ac6b260
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System;
using MelonLoader.Resolver;
using System.Runtime.Loader;
using System.Reflection;
using MelonLoader.Engine.Unity.Il2Cpp;

namespace MelonLoader.Engine.Unity
Expand Down
4 changes: 2 additions & 2 deletions MelonLoader/Utils/MelonEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ internal static void Initialize(AppDomain domain)
CurrentPlatform = OsUtils.Is32Bit ? MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X86 : MelonPlatformAttribute.CompatiblePlatforms.WINDOWS_X64;
CurrentDomain = IsDotnetRuntime ? MelonPlatformDomainAttribute.CompatibleDomains.DOTNET : MelonPlatformDomainAttribute.CompatibleDomains.MONO;

SetEngineInfo("UNKNOWN", "0.0.0");
SetApplicationInfo("UNKNOWN", "UNKNOWN", "0.0.0");
SetEngineInfo(ApplicationExecutableName, "0.0.0");
SetApplicationInfo(ApplicationExecutableName, ApplicationExecutableName, "0.0.0");
}

internal static void WelcomeMessage()
Expand Down

0 comments on commit ac6b260

Please sign in to comment.