Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 629403a

Browse files
committed
1.8.0 cleanup
1 parent 873d0f2 commit 629403a

File tree

3 files changed

+27
-20
lines changed

3 files changed

+27
-20
lines changed

src/Explorer.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<DebugSymbols>false</DebugSymbols>
3535
<DebugType>none</DebugType>
3636
<Optimize>false</Optimize>
37-
<OutputPath>..\Release\ML_Cpp\</OutputPath>
37+
<OutputPath>..\Release\Explorer.MelonLoader.Il2Cpp\</OutputPath>
3838
<DefineConstants>CPP,ML</DefineConstants>
3939
<ErrorReport>prompt</ErrorReport>
4040
<WarningLevel>4</WarningLevel>
@@ -49,7 +49,7 @@
4949
<DebugSymbols>false</DebugSymbols>
5050
<DebugType>none</DebugType>
5151
<Optimize>false</Optimize>
52-
<OutputPath>..\Release\ML_Mono\</OutputPath>
52+
<OutputPath>..\Release\Explorer.MelonLoader.Mono\</OutputPath>
5353
<DefineConstants>MONO,ML</DefineConstants>
5454
<ErrorReport>prompt</ErrorReport>
5555
<WarningLevel>4</WarningLevel>
@@ -64,7 +64,7 @@
6464
<DebugSymbols>false</DebugSymbols>
6565
<DebugType>none</DebugType>
6666
<Optimize>false</Optimize>
67-
<OutputPath>..\Release\ML_Mono_NET35\</OutputPath>
67+
<OutputPath>..\Release\Explorer.MelonLoader.Mono.NET35\</OutputPath>
6868
<DefineConstants>MONO,ML,NET35</DefineConstants>
6969
<ErrorReport>prompt</ErrorReport>
7070
<WarningLevel>4</WarningLevel>
@@ -79,7 +79,7 @@
7979
<DebugSymbols>false</DebugSymbols>
8080
<DebugType>none</DebugType>
8181
<Optimize>false</Optimize>
82-
<OutputPath>..\Release\BIE_Cpp\</OutputPath>
82+
<OutputPath>..\Release\Explorer.BepInEx.Il2Cpp\</OutputPath>
8383
<DefineConstants>CPP,BIE</DefineConstants>
8484
<ErrorReport>prompt</ErrorReport>
8585
<WarningLevel>4</WarningLevel>
@@ -94,7 +94,7 @@
9494
<DebugSymbols>false</DebugSymbols>
9595
<DebugType>none</DebugType>
9696
<Optimize>false</Optimize>
97-
<OutputPath>..\Release\BIE_Mono\</OutputPath>
97+
<OutputPath>..\Release\Explorer.BepInEx.Mono\</OutputPath>
9898
<DefineConstants>MONO,BIE</DefineConstants>
9999
<ErrorReport>prompt</ErrorReport>
100100
<WarningLevel>4</WarningLevel>
@@ -109,7 +109,7 @@
109109
<DebugSymbols>false</DebugSymbols>
110110
<DebugType>none</DebugType>
111111
<Optimize>false</Optimize>
112-
<OutputPath>..\Release\BIE_Mono_NET35\</OutputPath>
112+
<OutputPath>..\Release\Explorer.BepInEx.Mono.NET35\</OutputPath>
113113
<DefineConstants>MONO,BIE,NET35</DefineConstants>
114114
<ErrorReport>prompt</ErrorReport>
115115
<WarningLevel>4</WarningLevel>

src/ExplorerCore.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ namespace Explorer
44
{
55
public class ExplorerCore
66
{
7-
public const string NAME =
7+
public const string NAME = "Explorer (" + PLATFORM + ", " + MODLOADER + ")";
8+
public const string VERSION = "1.8.0";
9+
public const string AUTHOR = "Sinai";
10+
public const string GUID = "com.sinai.explorer";
11+
12+
public const string MODLOADER =
813
#if ML
9-
#if CPP
10-
"Explorer (Il2Cpp, MelonLoader)";
14+
"MelonLoader";
1115
#else
12-
"Explorer (Mono, MelonLoader)";
16+
"BepInEx";
1317
#endif
14-
#else
18+
public const string PLATFORM =
1519
#if CPP
16-
"Explorer (Il2Cpp, BepInEx)";
20+
"Il2Cpp";
1721
#else
18-
"Explorer (Mono, BepInEx)";
19-
#endif
22+
"Mono";
2023
#endif
21-
public const string VERSION = "1.8.0";
22-
public const string AUTHOR = "Sinai";
23-
public const string GUID = "com.sinai.explorer";
2424

2525
public static ExplorerCore Instance { get; private set; }
2626

src/Menu/MainMenu/Pages/ConsolePage.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public class ConsolePage : WindowPage
3030
"System.Collections",
3131
"System.Collections.Generic",
3232
"System.Reflection",
33+
#if ML
3334
"MelonLoader"
35+
#endif
3436
};
3537

3638
public override void Init()
@@ -42,9 +44,14 @@ public override void Init()
4244
{
4345
MethodInput = @"// This is a basic C# console.
4446
// Some common using directives are added by default, you can add more below.
45-
// If you want to return some output, Debug.Log() it.
46-
47-
Debug.Log(""hello world"");";
47+
// If you want to return some output, Debug.Log() or MelonLogger.Log() it.
48+
"
49+
#if ML
50+
+ @"MelonLogger.Log(""hello world"");";
51+
#else
52+
+ @"Debug.Log(""hello world"");";
53+
#endif
54+
;
4855

4956
ResetConsole();
5057

0 commit comments

Comments
 (0)