Skip to content

Commit 318b6e4

Browse files
authored
Merge pull request #29 from Gyztor/master
Add Renderite shared dependency and update Discord.Net
2 parents 41571a4 + c912cc2 commit 318b6e4

3 files changed

Lines changed: 9 additions & 4 deletions

File tree

HeadlessTweaks/DiscordIntegration.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Discord;
55
using System.Collections.Generic;
66
using Discord.Webhook;
7+
using Renderite.Shared;
78

89
namespace HeadlessTweaks
910
{
@@ -307,7 +308,7 @@ public static bool IsEnabled(DiscordEvents name)
307308

308309
private static Color FromColorX(Elements.Core.colorX color)
309310
{
310-
var srgb = color.ToProfile(Elements.Core.ColorProfile.sRGB);
311+
var srgb = color.ToProfile(Renderite.Shared.ColorProfile.sRGB);
311312
return new Color(srgb.r, srgb.g, srgb.b);
312313
}
313314
}

HeadlessTweaks/HeadlessTweaks.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ModLoaderShort>rml</ModLoaderShort>
55

66
<Product>HeadlessTweaks</Product>
7-
<Version>2.1.10</Version>
7+
<Version>2.1.11</Version>
88

99
<Company>New_Project_Final_Final_WIP</Company>
1010
<Copyright>Copyright © $(Company) 2025</Copyright>
@@ -67,7 +67,7 @@
6767

6868
<ItemGroup>
6969
<!-- Referencing Webhook will also reference Core and Rest -->
70-
<PackageReference Include="Discord.Net.Webhook" Version="3.17.0"/>
70+
<PackageReference Include="Discord.Net.Webhook" Version="3.18.0"/>
7171
</ItemGroup>
7272

7373
<ItemDefinitionGroup>
@@ -81,7 +81,6 @@
8181
<Reference Include="HarmonyLib">
8282
<HintPath>$(ModLibrariesPath)0Harmony.dll</HintPath>
8383
<HintPath Condition="Exists('$(HeadlessPath)0Harmony.dll')">$(HeadlessPath)0Harmony.dll</HintPath>
84-
<HintPath Condition="Exists('$(ModLibrariesPath)0Harmony-Net8.dll')">$(ModLibrariesPath)0Harmony-Net8.dll</HintPath>
8584
</Reference>
8685
<Reference Include="Elements.Core">
8786
<HintPath>$(HeadlessData)Elements.Core.dll</HintPath>
@@ -104,6 +103,9 @@
104103
<Reference Include="Elements.Quantity">
105104
<HintPath>$(HeadlessData)Elements.Quantity.dll</HintPath>
106105
</Reference>
106+
<Reference Include="Renderite.Shared">
107+
<HintPath>$(HeadlessData)Renderite.Shared.dll</HintPath>
108+
</Reference>
107109
<Reference Include="$(AppName)">
108110
<HintPath>$(HeadlessPath)\$(AppName).exe</HintPath>
109111
<HintPath Condition="Exists('$(HeadlessData)\$(AppName).exe')">$(HeadlessData)\$(AppName).exe</HintPath>
@@ -113,6 +115,7 @@
113115
<Reference Include="$(AppName)ModLoader">
114116
<HintPath>$(HeadlessPath)$(AppName)ModLoader.dll</HintPath>
115117
<HintPath Condition="Exists('$(HeadlessPath)Libraries\$(AppName)ModLoader.dll')">$(HeadlessPath)Libraries\$(AppName)ModLoader.dll</HintPath>
118+
<HintPath Condition="Exists('$(AppPath)Libraries\$(AppName)ModLoader.dll')">$(AppPath)Libraries\$(AppName)ModLoader.dll</HintPath>
116119
</Reference>
117120
<Reference Include="Newtonsoft.Json">
118121
<HintPath>$(HeadlessPath)\Newtonsoft.Json.dll</HintPath>

HeadlessTweaks/HelperExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Elements.Core;
77
using ResoniteModLoader;
88
using System.Timers;
9+
using Renderite.Shared;
910

1011
namespace HeadlessTweaks
1112
{

0 commit comments

Comments
 (0)