Skip to content

Commit ca64c4e

Browse files
committed
Fix build warnings
1 parent b4e5ed7 commit ca64c4e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CommunityFixes.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RestoreAdditionalProjectSources>
99
https://nuget.spacewarp.org/v3/index.json
1010
</RestoreAdditionalProjectSources>
11-
<ModId Condition="'$(ModId)'==''">CommunityFixes</ModId>
11+
<NoWarn>CS0436</NoWarn>
1212
</PropertyGroup>
1313
<ItemGroup>
1414
<PackageReference Include="BepInEx.Analyzers" Version="1.*" PrivateAssets="all" />
@@ -21,6 +21,6 @@
2121
<PackageReference Include="UnityEngine.Modules" Version="2020.3.33.1" />
2222
</ItemGroup>
2323
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
24-
<Exec Command="xcopy /y &quot;$(ProjectDir)swinfo.json&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ModId)\&quot;&#xA;echo f | xcopy /y &quot;$(TargetPath)&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ModId)\$(ModId).dll&quot;&#xA;if $(ConfigurationName) == Debug echo f | xcopy /y &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ModId)\$(ModId).pdb&quot;&#xA;xcopy /y &quot;$(ProjectDir)LICENSE&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ModId)\&quot;&#xA;echo f | xcopy /y &quot;$(ProjectDir)README.md&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ModId)\README.txt&quot;" />
24+
<Exec Command="xcopy /y &quot;$(ProjectDir)swinfo.json&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ProjectName)\&quot;&#xA;echo f | xcopy /y &quot;$(TargetPath)&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ProjectName)\$(ProjectName).dll&quot;&#xA;if $(ConfigurationName) == Debug echo f | xcopy /y &quot;$(TargetDir)$(TargetName).pdb&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ProjectName)\$(ProjectName).pdb&quot;&#xA;xcopy /y &quot;$(ProjectDir)LICENSE&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ProjectName)\&quot;&#xA;echo f | xcopy /y &quot;$(ProjectDir)README.md&quot; &quot;$(ProjectDir)$(ConfigurationName)\BepInEx\plugins\$(ProjectName)\README.txt&quot;" />
2525
</Target>
2626
</Project>

src/Fix/STFUFix/BetterNodeCheckPatches.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using HarmonyLib;
1+
/*
2+
using HarmonyLib;
23
using KSP.Game;
34
using KSP.Messages;
45
using KSP.Sim;
@@ -474,3 +475,4 @@ public static bool BetterCalculateOdeManeuverNodes(ManeuverPlanSolver __instance
474475
return false;
475476
}
476477
}
478+
*/

src/Fix/STFUFix/BogusMessageSuppressionFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class SuppressTransmissionsFalselyUrgentFix : BaseFix
99
public static SuppressTransmissionsFalselyUrgentFix Instance;
1010

1111
// Community Fix config parameters specific to this fix
12-
internal static ConfigEntry<bool> _allowAllNodes;
12+
// internal static ConfigEntry<bool> _allowAllNodes;
1313

1414
public SuppressTransmissionsFalselyUrgentFix()
1515
{

0 commit comments

Comments
 (0)