Skip to content

Commit f827279

Browse files
committed
Compatibility for Melonloader 0.7.x
1 parent fed1dff commit f827279

2 files changed

Lines changed: 26 additions & 13 deletions

File tree

CustomHitSound.csproj

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,55 +6,56 @@
66
<Nullable>disable</Nullable>
77
<LangVersion>latest</LangVersion>
88
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
9-
<ReferencePath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash</ReferencePath>
9+
<ReferencePath>$(MD_NET6_DIRECTORY)</ReferencePath>
10+
<Platforms>AnyCPU;x64</Platforms>
1011
</PropertyGroup>
1112

1213
<ItemGroup>
1314
<Reference Include="0Harmony">
14-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\net6\0Harmony.dll</HintPath>
15+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\net6\0Harmony.dll</HintPath>
1516
<Private>False</Private>
1617
</Reference>
1718
<Reference Include="Assembly-CSharp">
18-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\Il2CppAssemblies\Assembly-CSharp.dll</HintPath>
19+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\Il2CppAssemblies\Assembly-CSharp.dll</HintPath>
1920
<Private>False</Private>
2021
</Reference>
2122
<Reference Include="Il2CppInterop.Runtime">
22-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\net6\Il2CppInterop.Runtime.dll</HintPath>
23+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\net6\Il2CppInterop.Runtime.dll</HintPath>
2324
<Private>False</Private>
2425
</Reference>
2526
<Reference Include="Il2Cppmscorlib">
26-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\Il2CppAssemblies\Il2Cppmscorlib.dll</HintPath>
27+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\Il2CppAssemblies\Il2Cppmscorlib.dll</HintPath>
2728
<Private>False</Private>
2829
</Reference>
2930
<Reference Include="Il2CppSirenix.Serialization">
30-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\Il2CppAssemblies\Il2CppSirenix.Serialization.dll</HintPath>
31+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\Il2CppAssemblies\Il2CppSirenix.Serialization.dll</HintPath>
3132
<Private>False</Private>
3233
</Reference>
3334
<Reference Include="MelonLoader">
34-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\net6\MelonLoader.dll</HintPath>
35+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\net6\MelonLoader.dll</HintPath>
3536
<Private>False</Private>
3637
</Reference>
3738
<Reference Include="Tomlet">
38-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\net6\Tomlet.dll</HintPath>
39+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\net6\Tomlet.dll</HintPath>
3940
<Private>False</Private>
4041
</Reference>
4142
<Reference Include="UnityEngine.AudioModule">
42-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\Il2CppAssemblies\UnityEngine.AudioModule.dll</HintPath>
43+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\Il2CppAssemblies\UnityEngine.AudioModule.dll</HintPath>
4344
<Private>False</Private>
4445
</Reference>
4546
<Reference Include="UnityEngine.CoreModule">
46-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\Il2CppAssemblies\UnityEngine.CoreModule.dll</HintPath>
47+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\Il2CppAssemblies\UnityEngine.CoreModule.dll</HintPath>
4748
<Private>False</Private>
4849
</Reference>
4950
<Reference Include="UnityEngine.UI">
50-
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\Muse Dash\MelonLoader\Il2CppAssemblies\UnityEngine.UI.dll</HintPath>
51+
<HintPath>$(MD_NET6_DIRECTORY)\MelonLoader\Il2CppAssemblies\UnityEngine.UI.dll</HintPath>
5152
<Private>False</Private>
5253
</Reference>
5354
</ItemGroup>
5455

5556
<Target Name="CopyMods" AfterTargets="Build">
56-
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).dll" DestinationFolder="$(ReferencePath)\Mods"/>
57-
<Message Text="Copied DLL -&gt; $(ReferencePath)\Mods\$(ProjectName).dll" Importance="High"/>
57+
<Copy SourceFiles="$(OutputPath)\$(AssemblyName).dll" DestinationFolder="$(ReferencePath)\Mods" />
58+
<Message Text="Copied DLL -&gt; $(ReferencePath)\Mods\$(ProjectName).dll" Importance="High" />
5859
</Target>
5960

6061
</Project>

CustomHitSound.sln

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 18
4+
VisualStudioVersion = 18.3.11520.95 d18.3
5+
MinimumVisualStudioVersion = 10.0.40219.1
36
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomHitSound", "CustomHitSound.csproj", "{B5898A90-5AFA-4B22-A523-B3CF924A9C41}"
47
EndProject
58
Global
69
GlobalSection(SolutionConfigurationPlatforms) = preSolution
710
Debug|Any CPU = Debug|Any CPU
11+
Debug|x64 = Debug|x64
812
Release|Any CPU = Release|Any CPU
13+
Release|x64 = Release|x64
914
EndGlobalSection
1015
GlobalSection(ProjectConfigurationPlatforms) = postSolution
1116
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
1217
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Debug|x64.ActiveCfg = Debug|x64
19+
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Debug|x64.Build.0 = Debug|x64
1320
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Release|Any CPU.ActiveCfg = Release|Any CPU
1421
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Release|x64.ActiveCfg = Release|x64
23+
{B5898A90-5AFA-4B22-A523-B3CF924A9C41}.Release|x64.Build.0 = Release|x64
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
1527
EndGlobalSection
1628
EndGlobal

0 commit comments

Comments
 (0)