Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion KSPCommunityFixes/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@
[assembly: SuppressMessage("Style", "IDE0017:Simplify object initialization")]
[assembly: SuppressMessage("Design", "CA1031:Do not catch general exception types")]
[assembly: SuppressMessage("Style", "IDE0016:Use 'throw' expression", Justification = "<Pending>", Scope = "member", Target = "~M:KSPCommunityFixes.BasePatch.PatchInfo.#ctor(KSPCommunityFixes.BasePatch.PatchMethodType,System.Reflection.MethodBase,KSPCommunityFixes.BasePatch,System.String,System.Int32)")]
[assembly: SuppressMessage("Design", "CA1034:Nested types should not be visible", Justification = "<Pending>", Scope = "type", Target = "~T:KSPCommunityFixes.TextureLoaderOptimizations.CachedTextureInfo")]
[assembly: SuppressMessage("Style", "IDE0028:Simplify collection initialization", Justification = "<Pending>", Scope = "member", Target = "~M:KSPCommunityFixes.LocalizationUtils.GenerateLocTemplate(System.String)")]

18 changes: 0 additions & 18 deletions KSPCommunityFixes/Internal/PatchSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ protected override void ApplyPatches()
if (disableMHPatch != null)
entryCount++;

if (KSPCFFastLoader.IsPatchEnabled)
entryCount++;

// NoIVA is always enabled
entryCount++;
}
Expand Down Expand Up @@ -107,21 +104,6 @@ static void GameplaySettingsScreen_DrawMiniSettings_Postfix(ref DialogGUIBase[]
count++;
}

if (KSPCFFastLoader.IsPatchEnabled)
{
DialogGUIToggle toggle = new DialogGUIToggle(KSPCFFastLoader.TextureCacheEnabled,
() => (KSPCFFastLoader.TextureCacheEnabled)
? Localizer.Format("#autoLOC_900889") //"Enabled"
: Localizer.Format("#autoLOC_900890"), //"Disabled"
KSPCFFastLoader.OnToggleCacheFromSettings, 150f);
toggle.tooltipText = KSPCFFastLoader.LOC_SettingsTooltip;

modifiedResult[count] = new DialogGUIHorizontalLayout(TextAnchor.MiddleLeft,
new DialogGUILabel(() => KSPCFFastLoader.LOC_SettingsTitle, 150f),
toggle, new DialogGUIFlexibleSpace());
count++;
}

DialogGUISlider noIVAslider = new DialogGUISlider(NoIVA.PatchStateToFloat, 0f, 2f, true, 100f, 20f, NoIVA.SwitchPatchState);
noIVAslider.tooltipText = NoIVA.LOC_SettingsTooltip;
DialogGUILabel valueLabel = new DialogGUILabel(NoIVA.PatchStateTitle);
Expand Down
2 changes: 2 additions & 0 deletions KSPCommunityFixes/KSPCommunityFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
<Publicize Include="UnityEngine.CoreModule:UnityEngine.Object.GetOffsetOfInstanceIDInCPlusPlusObject" />
<Publicize Include="UnityEngine.IMGUIModule" />
<Publicize Include="UnityEngine.CoreModule:Unity.Collections.NativeArray`1.m_Buffer" />
<Publicize Include="UnityEngine.CoreModule:UnityEngine.Texture2D.Internal_Create" />
<Publicize Include="UnityEngine.CoreModule:UnityEngine.Texture.ValidateFormat" />
<Publicize Include="mscorlib:System.Runtime.CompilerServices.Unsafe" />
<Publicize Include="mscorlib:System.IO.MonoIO" />
<Publicize Include="mscorlib:System.IO.MonoIOError" />
Expand Down
Loading