Skip to content

Commit 274c0dd

Browse files
committed
fix: try to use correct usings for MelonLoader (failed)
1 parent a086f85 commit 274c0dd

File tree

3 files changed

+32
-6
lines changed

3 files changed

+32
-6
lines changed

src/CinematicUnityExplorer.csproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@
364364
</ItemGroup>
365365
</When>
366366
<Otherwise>
367-
<ItemGroup>
367+
<ItemGroup Condition="'$(Configuration)'=='BIE_Cpp_CoreCLR' or '$(Configuration)'=='BIE_Unity_Cpp_CoreCLR'">
368368
<Reference Include="Assembly-CSharp">
369369
<HintPath>..\..\..\..\Games\NIGHT-RUNNERS PROLOGUE 1.139\BepInEx\interop\Assembly-CSharp.dll</HintPath>
370370
</Reference>
@@ -377,6 +377,21 @@
377377
<Reference Include="Rewired_Windows">
378378
<HintPath>..\..\..\..\Games\NIGHT-RUNNERS PROLOGUE 1.139\BepInEx\interop\Rewired_Windows.dll</HintPath>
379379
</Reference>
380+
</ItemGroup>
381+
382+
<ItemGroup Condition="'$(Configuration)'=='ML_Cpp_CoreCLR'">
383+
<Reference Include="Assembly-CSharp">
384+
<HintPath>..\..\..\..\Steam\steamapps\common\NIGHT-RUNNERS PROLOGUE\MelonLoader\Il2CppAssemblies\Assembly-CSharp.dll</HintPath>
385+
</Reference>
386+
<Reference Include="Assembly-CSharp-firstpass">
387+
<HintPath>..\..\..\..\Steam\steamapps\common\NIGHT-RUNNERS PROLOGUE\MelonLoader\Il2CppAssemblies\Assembly-CSharp-firstpass.dll</HintPath>
388+
</Reference>
389+
<Reference Include="Rewired_Core">
390+
<HintPath>..\..\..\..\Steam\steamapps\common\NIGHT-RUNNERS PROLOGUE\MelonLoader\Il2CppAssemblies\Il2CppRewired_Core.dll</HintPath>
391+
</Reference>
392+
<Reference Include="Rewired_Windows">
393+
<HintPath>..\..\..\..\Steam\steamapps\common\NIGHT-RUNNERS PROLOGUE\MelonLoader\Il2CppAssemblies\Il2CppRewired_Windows.dll</HintPath>
394+
</Reference>
380395
</ItemGroup>
381396
</Otherwise>
382397
</Choose>

src/GlobalUsings.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Global using directives
2+
3+
#if ML
4+
global using Il2Cpp;
5+
#endif
6+
7+
#if INTEROP
8+
global using Il2CppInterop.Runtime;
9+
#else
10+
global using UnhollowerRuntimeLib;
11+
global using UnhollowerBaseLib;
12+
#endif

src/NightRunners/Utils/RCCUtils.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using CinematicUnityExplorer.NightRunners.Extensions;
2-
#if INTEROP
3-
using Il2CppInterop.Runtime;
2+
3+
#if BIE
4+
using Rewired;
45
#else
5-
using UnhollowerRuntimeLib;
6-
using UnhollowerBaseLib;
6+
using Il2CppRewired;
77
#endif
8-
using Rewired;
98

109
namespace CinematicUnityExplorer.NightRunners.Utils
1110
{

0 commit comments

Comments
 (0)