-
-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8893c90
commit 929689c
Showing
6 changed files
with
69 additions
and
41 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
MelonLoader/MelonLoader.Bootstrap.Mono/MelonLoader.Bootstrap.Mono.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<RootNamespace>MelonLoader.Mono</RootNamespace> | ||
<RootNamespace>MelonLoader.Bootstrap.Mono</RootNamespace> | ||
<TargetFramework>net6</TargetFramework> | ||
<LangVersion>Latest</LangVersion> | ||
<OutputPath>$(SolutionDir)Output\$(Configuration)\MelonLoader\</OutputPath> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
<DebugType>embedded</DebugType> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\MelonLoader.Bootstrap\MelonLoader.Bootstrap.csproj" Private="false" ExcludeAssets="runtime" /> | ||
<ProjectReference Include="..\MelonLoader.Bootstrap\MelonLoader.Bootstrap.csproj" Private="false" ExcludeAssets="runtime" /> | ||
<ProjectReference Include="..\MelonLoader.Shared\MelonLoader.Shared.csproj" Private="false" ExcludeAssets="runtime" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 38 additions & 11 deletions
49
MelonLoader/MelonLoader.Bootstrap.Mono/MonoRuntimeInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,47 @@ | ||
namespace MelonLoader.Mono | ||
namespace MelonLoader.Bootstrap.Mono | ||
{ | ||
public class MonoRuntimeInfo | ||
{ | ||
public readonly string FilePath; | ||
public readonly string PosixPath; | ||
public readonly string ConfigPath; | ||
public readonly string Variant; | ||
public readonly bool IsOldMono; | ||
#region Public Members | ||
|
||
public MonoRuntimeInfo(string filePath, string posixPath, string configPath, string variant, bool isOldMono) | ||
public eMonoRuntimeVariant Variant { get; private set; } | ||
public string LibPath { get; private set; } | ||
public string PosixPath { get; private set; } | ||
public string ConfigPath { get; private set; } | ||
|
||
#endregion | ||
|
||
#region Constructors | ||
|
||
public MonoRuntimeInfo( | ||
eMonoRuntimeVariant variant, | ||
string libPath, | ||
string configPath) | ||
=> SetInfo(variant, libPath, configPath, null); | ||
|
||
public MonoRuntimeInfo( | ||
eMonoRuntimeVariant variant, | ||
string libPath, | ||
string configPath, | ||
string posixPath) | ||
=> SetInfo(variant, libPath, configPath, posixPath); | ||
|
||
#endregion | ||
|
||
#region Private Methods | ||
|
||
private void SetInfo( | ||
eMonoRuntimeVariant variant, | ||
string libPath, | ||
string configPath, | ||
string posixPath) | ||
{ | ||
FilePath = filePath; | ||
PosixPath = posixPath; | ||
ConfigPath = configPath; | ||
Variant = variant; | ||
IsOldMono = isOldMono; | ||
LibPath = libPath; | ||
ConfigPath = configPath; | ||
PosixPath = posixPath; | ||
} | ||
|
||
#endregion | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
MelonLoader/MelonLoader.Bootstrap.Mono/eMonoRuntimeVariant.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace MelonLoader.Bootstrap.Mono | ||
{ | ||
public enum eMonoRuntimeVariant | ||
{ | ||
MONO = 0, | ||
MONO_BLEEDING_EDGE = 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters